New Mac, if you use the idea shortcut key by default, because with eclipse, completely can not turn, so the other people put together the resources in the directory, in order to view
Original: https://my.oschina.net/sunzy/blog/362276
Alt+f7 find where to use ctrl+shift+g equivalent to eclipse
Command+alt+f7 This is the place where the selected characters appear in the project, not the method variable class, etc., this is different from the above
Command+f7 can query the current element in the current file of the reference, and then press F3 can choose, the function of the basic ibid.
Select the text, press COMMAND+SHIFT+F7, highlight all the text, and press ESC to highlight the disappear.
Select the text, press ALT+F3, look down the same text, and highlight it. SHIFT+F3 is looking up.
Ctrl+enter the interface that generated the Get,set method appears
Shift+enter Change to Next line
Command+n Find Class
Command+shift+n Finding files
Command+r replacement
Ctrl+shift+r can replace variables in the entire project or under a directory
Command+y Deleting rows
Command+d Copy a row
Ctrl+shift+j lines are concatenated into rows, and rows with spaces are removed
Command+j can generate some automatic code, such as A For loop
Command+b find the source of the variable with F4 find the source of the variable
Ctrl+shift+b find the class to which the variable belongs
Command+g positioning
Command+f find text in current file F3 look down, shift+f3 look up
Ctrl+shift+f can look for variables in the entire project or under a directory equivalent to the ctrl+h in eclipse
Alt+shift+c recently modified files
Command+e recently opened files
Alt+enter Import package, automatic modification
Command+alt+l Formatting Code
Command+alt+i Auto Indent, do not have to use the tab or the BACKSPACE key, is also more convenient
Ctrl+shift+space code completion, this will determine the possible use of this code completion and code hints are not the same
Command+p Method Parameter Hints
Command+alt+t put the selected code in try{} if{} else{}
Command+x Cut Delete Rows
Command+shift+v can copy multiple text
Command+shift+u Uppercase and lowercase conversions
Alt+f1 find the directory where the files are located
command+/Comment Line or multiple lines//
ctrl+shift+/Comment/*...*/
Command+alt+ left and right arrows return to last edited position
Shift+f6 renaming
command+shift+ up and down arrows move the code up or down
command+[or] can jump to the beginning of the curly brace
COMMAND+F12 can display the structure of the current file
Command+alt+b can navigate to the implementation code of an abstract method
* Column editing for command+shift+ keypad
Alt+f8 Check values when debugging
F8 equivalent to eclipse F6 jump to the next step
Shift+f8 equivalent to eclipse's F8 jumps to the next breakpoint, also equivalent to eclipse's F7 bounce function
F7 equivalent to eclipse's F5 is entering into the code
Alt+shift+f7 This is mandatory entry code
CTRL+SHIFT+F9 Debug Run Java class
CTRL+SHIFT+F10 Normal running Java class
Command+f2 Stop Running
Mac idea shortcut keys