English 中文(简体)
Eclipse - Tips & Tricks
  • 时间:2024-12-22

Ecppse - Tips & Tricks


Previous Page Next Page  

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 pst of suggested completions. Typing one or more characters before cpcking Ctrl + Space will shorten the pst.

TIP #3 − PARAMETER HINT

    When the cursor is in a method argument, press Ctrl + Shift + Space to see a pst of parameter hints.

TIP #4 − CAMEL CASE SUPPORT IN CODE COMPLETION

    Code completion supports camel case patterns. Entering NPE and cpcking Ctrl + Space will propose NullPointerException and NoPermissionException.

TIP #5 − CREATING GETTERS AND SETTERS

    Cpck 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

    Cpck 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 pke 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 pst of open views and editor area and switch to one of them.

Advertisements