-1

What are some useful shortcuts in Eclipse?

GEOCHET
  • 21,119
  • 15
  • 74
  • 98
Valter Silva
  • 16,446
  • 52
  • 137
  • 218

6 Answers6

1

I love editing ones.

Ctrl + Shift + M = Add import
Ctrl + Shift + F = Reformat (the best)
Ctrl + Shift + O = Organize Imports
Ctrl + / = Comment
Ctrl + \ = UnComment
Ctrl + I = Correct indentation

Also this ones handy.

F3 = Goto declaration

A Whole List can be found here --> Eclipse Shortcuts

sealz
  • 5,348
  • 5
  • 40
  • 70
1

My favorite: Ctrl+2, R to rename all instances of a variable in a class.

nfechner
  • 17,295
  • 7
  • 45
  • 64
1

Ones I use most often

Ctrl + space auto complete.

Ctrl + / to comment a line/block

sysout to expand to system.out.println();

syserr to expand to system.err.println();

F3 for go to declaration

F4 to display hierachy

and select text and press Ctrl + Arrow UP/down, try it

Leon
  • 1,141
  • 13
  • 25
1

Some of My favorite shortcuts :

1) ctrl + Shift + R //Open Resource

2) ctrl + Shift + / and \ //For Add Block and Remove Comment.

3) ctrl + Shift + O //For Auto import of packages.

4)ctrl + 7 //For inline comments.

5)Ctrl + Shift + F // Reformatting

6)ctrl + Space //Off course for intelligence

Sandeep Pathak
  • 10,567
  • 8
  • 45
  • 57
1

ctrl + shift + / to minimize all folding block.

ctrl + shift + * to expand all folding blocks.

Of course you have to have folding enabled :D

Shaded
  • 17,276
  • 8
  • 37
  • 62
1

This picture short cut for Eclipse will helps.It gathers most of short cuts in Eclipse in categories.Certainly it has what your want.

Vacker
  • 216
  • 2
  • 11