- rainbow brackets
- presentation assistant
- Vim
- AceJump plugin shortcut:
- press "ctrl + ;" to activate the ace jump mode
- then you can select a word and it will jump to the first occurence of the word
- finally, you can write "J" or "JJ" to jump to the word you searching for;
Chose your keymap first
: view -> quick switch scheme -> keymap
In my case, I'm using windows keymap.
General shortcuts:
- duplicate line : CTRL + D
- undo : CTRL + Z
- redo : CTRL + SHIFT + Z
- paste from history : CTRL + SHIFT + V
- copy path : "select file" + CTRL + C
- completing statement : CTRL + SHIFT + ENTER
- compare two files : (select files) + CTRL + D
- run anything : CTRL + CTRL
- expand / collapse code : CTRL + (+/-)
- expand / collapse all : CTRL + SHIFT + (+/-)
- create test : CTRL + SHIFT + T
- expand / collapse all : CTRL + SHIFT + (+/-)
- Editing :
- change string to uppercase/lowercase : CTRL + SHIFT + U
- Selecting & Moving :
- select one element : CTRL + W
- select entire line : CTRL + W + W
- select one element : CTRL + W
- select occurrences : ALT + J
- expend selection : CTRL + W (after the {)
- column selection mode : (SHIFT + ALT + insert) + (SHIFT + UP/DOWN)
- move UP : CTRL + SHIFT + UP
- move DOWN : CTRL + SHIFT + DOWN
- Searching & navigating :
- Search file: CTRL + SHIFT + F
- Search everywhere: SHIFT + SHIFT
- Search recent edited files: CRTL + E
- search within a directory/file: (select dir/file) + CTRL + SHIFT + F
- search the call hierarchy of method(service/controller/...) : CTRL + ALT + H
- Refactoring :
- refactor code (extract to a variable/ extract to a method / ...) : CTRL + ALT + SHIFT + T
- extract local variable : CTRL + ALT + V
- extract method : CTRL + ALT + M
- inline variable : CTRL + ALT + N
- extract to interface : (Select class) + CTRL + ALT + SHIFT + T -> extract to interface
- Generating code :
- code completion : CTRL + SPACE
- generate code (constructor/getters/setters/...) : ALT + insert
- override methods : CTRL + O
- optimize imports : CTRL + ALT + O
- some magic : CTRL + J