Work Note 3 - Common shortcut keys and eclipse comparison of idea under mac

alt+f7 to find where to use the eclipse equivalent of ctrl+shift+G
command+alt+f7 This is to find the place where the selected character appears in the project, it may not be a method variable class, etc. This is different from the above
Command+F7 can query the reference of the current element in the current file, and then press F3 to select, the function is basically the same as above
Select the text, press command+shift+F7, highlight all the text, press Esc to highlight disappear.
Select the text, press Alt+F3 to find the same text one by one and highlight it. shift+f3 is to look up
ctrl+enter The interface for generating get and set methods appears
shift+enter to change to the next line
command+N find class
command+shift+N find files
command+R replace
ctrl+shift+R can replace variables in the whole project or under a directory
command+Y delete line
command+D to copy a line
ctrl+shift+J joins multiple lines into one line, which will remove the lines with spaces
command+J can generate some automatic code, such as for loop
command+B to find the source of the variable Same as F4 to 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 the current file f3 to look down, shift+f3 to look up
ctrl+shift+F can find variables in the whole project or under a directory, which is equivalent to ctrl+H in eclipse
alt+shift+C recently modified files
command+E recently opened files
alt+enter import package, automatically modify
command+alt+L format code
command+alt+I is automatically indented, it is more convenient to use the tab or backspace key multiple times.
ctrl+shift+space code completion, this will determine what may be used, this code completion and code prompts are different
The command+P method parameter prompts
command+alt+T to put the selected code in TRY{} IF{} ELSE{}
command+X cut delete line
command+shift+V can copy multiple texts
command+shift+U case conversion
alt+f1 finds the directory location where the file is located
command+/ Comment one or more lines //
ctrl+shift+/ comment/*...*/
command+alt+left and right arrows return to the last edited position
shift+f6 to rename
command+shift+up and down arrows move code up or down
command+[ or ] can jump to the beginning and end of curly braces
command+f12 can display the structure of the current file
command+alt+B can navigate to the implementation code of an abstract method
command+shift+keyboard * column editing
Check the view value when alt+f8 debug
f8 is equivalent to eclipse's f6 skip to the next step
shift+f8 is equivalent to eclipse's f8 jumping to the next breakpoint, and is also equivalent to eclipse's f7 jumping out of the function
f7 is equivalent to f5 of eclipse, which is to enter the code
alt+shift+f7 this is the forced entry code
ctrl+shift+f9 debug run java class
ctrl+shift+f10 runs the java class normally
command+f2 to stop running

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326034309&siteId=291194637
Recommended