Showing posts with label shortcut. Show all posts
Showing posts with label shortcut. Show all posts

7 April 2015

My top useful shortcuts in IntelliJ IDEA


FUNCTION MAC(new) MAC(old) WIN
Review recent changes in project ALT+SHIFT+C ALT+SHIFT+C ALT+SHIFT+C
Generate CMD+N CMD+N ALT+INSERT
Find an action SHIFT+CMD+a ? SHIFT+CTRL+a
Format code CMD+ALT+l ? CTRL+ALT+l
Smart completion ? ? CTRL+SHIFT+SPACE
Next/previous problem F2/SHIFT+F2 F2/SHIFT+F2 F2/SHIFT+F2
Select clipboard SHIFT+CMD+v ? ALT+SHIFT+C
Open current opened file
in the separate window.
SHIFT+F4 SHIFT+F4 SHIFT+F4
Complete method SHIFT+CMD+ENTER ? SHIFT+CTRL+ENTER
Show project structure CMD+7 ? ALT+7
Show project CMD+1 ? ALT+1
Toggle full mode SHIFT+CMD+F12 ? SHIFT+CTRL+F12
Refactoring menu 
(it is context aware)
? ? CTRL+SHIFT+ALT+T
Find class in project. CMD+o CMD+n CTRL+n
Find file in project. CMD+SHIFT+o CMD+SHIFT+n CTRL+SHIFT+n
Search everywhere. SHIFT (press twice) SHIFT (press twice) SHIFT (press twice)
Evaluate expression
ALT+F8ALT+F8 ALT+F8
Extract method. ALT+CMD+m ALT+CMD+m CTRL+ALT+m
Find word(s) in project. CMD+SHIFT+f ? CTRL+SHIFT+f







"? - I couldn't find shortcut .. or it doesn't work on my machine "

TIPS and Resources

1 April 2014

What is shortcut for comment and uncomment in Eclipse.

Sometimes, we need comment/uncomment some lines of code.
Eclipse has tones of useful shortcuts...and some of them are about comment/uncomment :)


For single line comment (//)
To comment press CTRL + /
To uncomment press  CTRL + / again.

For multi-line  line comments ( /* */)
To comment press CTRL + SHIFT +  /
To uncomment press  CTRL + SHIFT +  \ (WARNING! it is BACKSLASH not FORWARD SLASH like in single line comment)

Just in case:
 / is  a Forwards Slash
\ is a Backslash


I wonder,what were reasons behind design decision behind to use backslash instead of forward slash for multi-line comment.

12 December 2012

Useful shortcut in IntelliJ IDEA. Review recent changes

I used Since  IntelliJ IDEA v11.x (but i believe,it exist since forever).

To review recent changes to the project:
Press Alt+Shift+C

21 April 2012

Useful shortcut : Show documentation of highlighted item (method,class and etc.) in IntelliJ IDEA


One of the must have feature in any good IDE is a show documentation of highlighted  item.
Netbeans and Eclipse always display that automatically,but in Intellij IDEA you need press.... crtl + q, to see it.

It is quite uncomfortable, that you need press something instead of see it,but it is ok.

4 September 2011

Shortcut in windows to move currect application from one window to another

Solution for Windows 7.

I using 2 display and today i discover accidentaly great shortcut that allow me to move currect active window from one display to another.

Press shift + windows + arrow(right ,left )


Really useful shortcut.

6 April 2011

Useful shortcut in Eclipse: Quick fix

If you see that elcipse complain about something again and you want use quick fix ,then go to word that is highlighted in red  and press ctrl + 1.