score:0

the closest i'm getting to eclipse for j2ee in creating classes is to (re)map (preferences->general->keys) "new (class)" to ctrl + 1, and selecting the non-existing class text before so it populates the new class dialog with the class name.

unfortunately, you still have to enter source file and header file names in the dialog.

score:0

alt + shift + : select a block.

score:0

shift+ alt+ g : generate getters and setters (bind it)

alt + ctrl + : duplicate the line(s)

ctrl + shift + / :fold all

ctrl + * :unfold all

ctrl + / :enable/disable folding

score:0

debugging:

f11 start debugging

f5 step into a function

f6 step over a function

f7 step out of a function

f8 continue to next breakpoint

score:1

ctrl+k : to search forward for a highlighted text in a file.

ctrl+shift+k: to search backward for a highlighted text in a file

score:1

alt + shift + t : selected method: switch between inline, out of class in .h and out of class in .cpp

score:1

for me, this's one of the most useful key shortcuts, especially when in debug mode:

alt + / - go to previous / next cursor position.

score:2

ctrl+j : incremental search in the current file

ctrl+/(numerical keypad) : outline - folds all functions - for a quick view

score:2

ctrl+shift+f : this auto indents code

score:2

ctrl+shift+{ opens a parallel editor for same source file.

score:3

you have to change the default bindings to get these - but i like:

f3 : open declaration.

f4 : find text in project.

f4 is self-explanatory, but f3 has some intricacies: if you use it on a function call it will take you to the definition, and if you use it on a definition it will take you to the declaration.

score:3

ctrl + shift + g : when a function, object or var is selected : find all occurences of it in the project (works also with java).

ctrl + alt + g : textual search of the currently selected text.

ctrl + left click : go to the definition of the item.

score:3

ctrl+page up: go to the next source-file opened as a tab

ctrl+page down: go to the previous file

score:5

ctrl + o : opens a member browser of the current class, enabling to fastly open a method.

score:7

ctrl+b: build all projects

ctrl+f11: run

f11: debug

note: the above shortcuts are applicable to all eclipse version


manual shortcuts from preference > general > keys

alt+b: build project (current active project)

score:14

here is a list of the ones i use most often (excluding the ones from previous responses):

  • ctrl+shift+n - adds an include statement; the included header file is the one in which the current element is declared in

  • ctrl+i - corrects indentation of the selected text - very useful in my opinion

  • ctrl+d - deletes current row

  • alt+ / - moves the selected text (or current line if no text is selected) up or down

  • alt+ / - move to the previous/next location you edited; for example, if you browse through a few function declarations, and then want to go back to where you started from, press alt+ to move to the previous locations

  • ctrl+h - opens a search dialog; the "c/c++ search" tab searches through indexed locations and is fast, but the "file search" tab searches through all the text in your projects, and can come in handy when you're searching for a "hidden" element (for example, when searching for a macro defined under an #ifdef _windows, but _windows is not currently defined in your project)

score:15

alt + shift + r , n : rename a function or variable throughout a project.

score:18

ctrl+alt+h: opens the call hierarchy for a function

score:22

ctrl+shift+l: shows a list of actions with their corresponding shortcuts. ;)

score:23

ctrl + space : show proposals to complete you've written.

score:43

ctrl + shift + t : open element.

ctrl + shift + r : open file/resource.

ctrl + = : explore macro expansion.

score:54

summary of all the shortcuts in this thread and some more.

ctrl + tab - switch between source and header files.

ctrl + shift + t - open element

ctrl + shift + r - open file/resource.

ctrl + = - explore macro expansion.

ctrl + space - show proposals to complete you've written.

ctrl + alt + h - opens the call hierarchy for a function

ctrl + shift + n - adds an #include for the header file in which the current element is declared

ctrl + i - corrects indentation of the selected text - very useful in my opinion

ctrl + d - deletes current row

ctrl + h - opens a search dialog; the "c/c++ search" tab searches through indexed locations

ctrl + o - opens a member browser of the current class, enabling to fastly open a method

f3 - open declaration

ctrl + shift + g - when a function, object or var is selected : find all occurences of it in the project.

ctrl + alt + g - textual search of the currently selected text.

ctrl + left click - go to the definition of the item.

ctrl + j - incremental search in the current file

ctrl + k - to search forward for a highlighted text in a file.

ctrl + shift + k - to search backward for a highlighted text in a file

alt + / - go to previous / go to next edited or viewed place.

ctrl + m - maximize or un-maximize current editor window (also works for other windows

ctrl + shift + up/down arrow - jump to previous / jump to next method

ctrl + q - jump to last location edited

ctrl + shift + p - with a bracket selected: jump to the matching closing or opening bracket

ctrl + / - comment/uncomment all selected lines with //

ctrl + shift + / - comment selected block with /* ... */

ctrl + shift + \ - uncomment /* ... */ selected block

score:61

ctrl + tab : switch between source and header files.


Related Query

More Query from same tag