Showing posts with label eclipse. Show all posts
Showing posts with label eclipse. Show all posts

Tuesday, May 31, 2011

eclipse comments short cut


ShortcutCommandDescription
Ctrl+/Toggle CommentAdd/remove line comments (//…) from the current line. The position of the cursor can beanywhere on the line. Works with multiple selected lines as well.
Ctrl+Shift+/Add Block CommentWrap the selected lines in a block comment (/*… */).
Ctrl+Shift+\Remove Block CommentRemove a block comment (/*… */) surrounding the selected lines.
Alt+Shift+JAdd Javadoc CommentAdd a Javadoc comment to the active field/method/class. See the notes below for more details on where to position the cursor.

Wednesday, September 8, 2010

Useful Eclipse Shortcut Keys

Ctrl+Shift+T

Find Java Type

Start typing the name and the list gets smaller. Try typing the capital letters of the class only (e.g. type "CME" to find "ConcurrentModificationException")

Ctrl+Shift+R

Find Resource

Use this to look for XML files, text files, or files of any other type. which are in your workspace.

Ctrl+E

Open Editor Drop-Down

Presents a popup window listing currently opened files. Start typing to limit the list or simply use the down arrow key.

Ctrl+O

Quick Outline

Use this to find a method or a member variable in a class. Start typing to limit the choices. Press Ctrl+O a second time to include inherited methods.

Ctrl+Space

Content Assist

Context sensitive content completion suggestions while editing Java code.