Contact at mumbai.academics@gmail.com or 8097636691
Responsive Ads Here

Monday, 25 June 2018

Eclipse - Tips & Tricks

TIP #1 − DISCOVERING SHORTCUT KEYS
  • Press Ctrl + Shift + L to open a widget that shows all the shortcut keys.
TIP #2 − CONTENT ASSIST
  • In the Java editor press Ctrl + Space to see a list of suggested completions. Typing one or more characters before clicking Ctrl + Space will shorten the list.
TIP #3 − PARAMETER HINT
  • When the cursor is in a method argument, press Ctrl + Shift + Spaceto see a list of parameter hints.
TIP #4 − CAMEL CASE SUPPORT IN CODE COMPLETION
  • Code completion supports camel case patterns. Entering NPE and clicking Ctrl + Space will propose NullPointerException and NoPermissionException.
TIP #5 − CREATING GETTERS AND SETTERS
  • Click on Source → Generate Getter and Setter to open the wizard that allows you to generate getter and setter methods.
TIP #6 − GENERATING HASHCODE() AND EQUALS() METHODS
  • Click on Source → Generate hashCode() and equals() to generate this methods for a Java class.
TIP #7 − ADDING CODE AROUND A BLOCK OF CODE
  • Select a block of code and press Alt+Shift+Z to see a menu of items like if statement, for loop, try/catch etc that can enclose the selected block of code.
TIP #8 − LOCATING A MATCHING BRACKET
  • Select an opening or closing bracket and press Ctrl+Shift+P to find its matching bracket.
TIP #9 − SMART JAVADOC
  • Type '/**' and press Enter to automatically addes a Javadoc comment stub.
TIP #10 − ORGANIZAING IMPORTS
  • Press Ctrl+Shift+O to organize all the imports.
TIP #11 − ACTIVATING THE MENU BAR
  • Press F10 to activate the Menu bar.
TIP #12 − MAKING A VIEW/EDITOR ACTIVE
  • Press Ctrl+F7 to see a list of open views and editor area and switch to one of them.

No comments:

Post a Comment