Kod içinde kısayollarla Property, Contstructor vs oluşturmak
Amaç source içindeki menülere hızlı ulaşmak oluncaAlt+Shift+S
ile menüye ulaşmak.Aşağıdaki ekran görüntüsünde "field"lar belli bunların "property"lerini oluşturmak istiyorum.
Getter ve Setter eklenerek propertyler oluşturuldu:
Alt + Shift + S : Shows the Source menu.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiASvjPqyq7RkfLi7F3hqWfPyZ-WucxvFlrHAFdIfq8QBWpwGtVsufPYeEuqAChGhyFzxNB_sv4o_tkAG99boxcLafAkeVubpnU2GwvRLnML6Ljtq3I600sUaPE5UCbZefDkgnWp2T_Uck/s400/eclipseShortCutAltShiftS.png)
Alt + Shift + M : Extract Method.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGBKLlEwv3K2KKIlTqJbzuZZiK6aMsNjTr2_4SFFF5KPvBahSfiuXvcwmEvhMyoMy0RZJl9gFqmelIgUykveJI4bcNE0YzSxFAqZlG-UukgflJFr5NF1rA9EmLcp1rQapRxr5RNAUr7ec/s400/EclipseShortcutExtractMethod.png)
Alt + Shift + L : Once you have a expression selected (a method call, or whatever), then Alt + Shift + L extracts that to a local variable.
CTRL + I
Corrects indentation.
ALT + Up/Down Arrow
Dikey işaretleme.
CTRL+SHIFT+O
Organize imports.
CTRL+1
Quick fix.
Ctrl + L : Jump to a Line number
CTRL+SHIFT+T
Open Type. Display available types.
CTRL + B
Build.
CTRL + F11
Runs the application.
CTRL + SHIFT + F
Formats code. You can make a beautiful looking code out of a mess with this. It requires a bit of setup, but it is well worth it. You can find its settings under Window->Preferences->Java->Code style->Formatter
CTRL + J
Incremental search.
CTRL + SHIFT + L
Shows you a list of your currently defined shortcut keys.
CTRL+SHIFT+G
Bind this to "Generate getters and setters".
ALT+C
Bind this to SVN/CVS "Commit".
ALT+U
Bind this to SVN/CVS "Update".
CTRL + D
Delete row.
ALT + Left/Right Arrow
Move to the last location you edited.
CTRL+E
Shows you a list of all open editors
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOK6ugniQP01HdQold_BN9eQtvVknXOQX5IvAgwTrQ3IWJD02UPS4Ev55akSTHtwiYmVAmBMzmAOAwlvO5eS12jktNzCMs7kiQ51id30kIL4oiFU28I6JY3LAeHerNZdMSw1ah7OWQFMI/s400/ctrl-e2%255B1%255D.png)
CTRL+F6
Use to move between open editors
CTRL+F8
Move between perspectives.
CTRL + M
Maximize or umaximize current tab.
Ref1: http://eclipse.dzone.com/news/effective-eclipse-shortcut-key
Ref2: http://theshyam.com/2009/07/eclipse-productivity-shortcuts/
Hiç yorum yok:
Yorum Gönder