Shortcut keys for IDEA and eclipse

Continually updated…

Features idea eclipse
Go back to the previous place ctrl + alt + ⬅ alt+⬅
source alt+insert shift+alt+S
Move line up ctrl+shift+⬆ alt + improvement
Generate return value ctrl+alt+V ctrl+1
View the implementation class of the class crtl+H

idea shortcut

Code formatting:Ctrl+Alt+L

Global search and replace: Ctrl + shift + r(replace)

Powerful search: shift + shift( search for everything)

Search for classes by class name: Ctrl + N

[General]
Ctrl+Shift + Enter, the statement is complete
"!", the negation is complete, press "!" key
Ctrl+E when entering the expression , the most recent file
Ctrl+Shift+E, the most recently changed file
Shift+Click, you can close File
Ctrl+[ OR ], you can go to the beginning and end of the braces
Ctrl+F12, you can display the structure of the current file
Ctrl+F7, you can query the reference of the current element in the current file, and then press F3 to select
Ctrl+N, you can Quickly open the class
Ctrl+Shift+N, you can quickly open the file
Alt+Q, you can see the declaration of the current method
Ctrl+P, you can display the parameter information
Ctrl+Shift+Insert, you can select the clipboard content and insert
Alt+Insert, you can Generate constructor/Getter/Setter, etc.
Ctrl+Alt+V, you can introduce variables. For example: new String(); automatically import variable definition
Ctrl+Alt+T, you can pack the code in a block, for example: try/catch
Ctrl+Enter, import the package, automatically correct
Ctrl+Alt+L, format code
Ctrl +Alt+I, automatically indent the selected code, this function can also work when editing JSP files
Ctrl+Alt+O, optimize imported classes and packages
Ctrl+R, replace text
Ctrl+F, find text
Ctrl+Shift+Space, automatically complete code
Ctrl+space, code prompt (conflicts with system input method shortcut keys)
Ctrl+Shift+Alt+N, find method or variable in the class
Alt+Shift+C, recent change
Alt+ Shift+Up/Down, move one line up/down
Shift+F6, refactor-rename
Ctrl+X, delete line
Ctrl+D, copy line
Ctrl+/ or Ctrl+Shift+/, comment (//or /**/)
Ctrl+J, automatic code (for example: serr)
Ctrl+Alt+J, surround
Ctrl+H with a dynamic template , display the class structure diagram (class inheritance hierarchy)
Ctrl+Q, display the comment document
Alt+F1, find the location of the code
Alt+1, quickly open or hide the project panel
Ctrl+Alt+left/right, return to the last browsed position
Alt+left/right, switch the code view
Alt+Up/Down, quickly move and position between methods
Ctrl+Shift+Up /Down, move the sentence
F2 or Shift+F2 up/down , highlight the error or warning and quickly locate the
Tab. After the code label is input, press Tab to generate the code
Ctrl+Shift+F7, highlight all the text, press Esc to high Bright and disappear
Alt+F3, find the same text down one by one, and highlight
Ctrl+Up/Down, the cursor will go to the first or last line
Ctrl+B/Ctrl+Click, quickly open the class or method at the cursor (jump to the definition)
Ctrl+Alt+B, jump to the method implementation
Ctrl+Shift+Backspace, jump to the last edited place
Ctrl +O, rewrite method
Ctrl+Alt+Space, automatically complete class name
Ctrl+Alt+Up/Down, quickly jump to search results
Ctrl+Shift+J, integrate two lines of
Alt+F8, calculate variable value
Ctrl+Shift+V , You can select and insert the recently used clipboard content into the text
Ctrl+Alt+Shift+V, simply paste
Shift+Esc, not only can move the focus to the editor, but also hide the current (or last active) tool window
F12, move the focus from the editor to the recently used tool window
Shift+F1, to open the browser of the Java document of the class or method used at the cursor character of the editor
Ctrl+W, you can select words and then statements and then lines and then function
Ctrl+ Shift+W, deselect the word where the cursor is located
Alt+F7, find the position of a certain class, method or variable used in the entire project
Ctrl+I, realize the method
Ctrl+Shift+U, convert case
Ctrl+Y, delete the current line
Shift+Enter, insert a new line
psvm/sout, main/System.out.println(); Ctrl+J, view more
Ctrl+Shift+F, global search
Ctrl+F, find /Shift+F3, find /F3 up, find
Ctrl+Shift+S down, advanced search
Ctrl+U, go to the parent category
Ctrl+Alt+S, open the setting dialog box
Alt+Shift+Inert, Turn on/off the column selection mode
Ctrl+Alt+Shift+S, open the current project/module properties
Ctrl+G, locate the line
Alt+Home, jump to the navigation bar
Ctrl+Enter, insert a line
Ctrl+Backspace, press the word delete
Ctrl+ "+/-", the current method expands and collapses
Ctrl+Shift+"+/-", expands and collapses all
[debug part, compile]
Ctrl+F2, stop
Alt+Shift+F9, select Debug
Alt+Shift+F10, select Run
Ctrl+Shift+F9, compile
Ctrl+Shift+F10, run
Ctrl+Shift+F8, check breakpoint
F8, step over
F7, step into
Shift+F7, step intelligently into
Shift+F8, step out of
Alt+Shift+F8 , Force step over
Alt+Shift+F7, force step into
Alt+F9, run to the cursor
Ctrl+Alt+F9, force run to the cursor
F9, restore the program
Alt+F10, locate the breakpoint
Ctrl+F8, switch line breakpoint
Ctrl+F9, generate project
Alt+1, project
Alt+2, favorite
Alt+6, TODO
Alt+7, structure
Ctrl+Shift+C, copy path
Ctrl+Alt+Shift+C, copy the reference, you must select the class name
Ctrl+Alt+Y, synchronize
Ctrl+~, quickly switch schemes (menus such as interface appearance, code style, shortcut key mapping, etc.)
Shift+F12, restore the default layout
Ctrl+ Shift+F12, hide/restore all windows
Ctrl+F4, close
Ctrl+Shift+F4, close the active tab
Ctrl+Tab, go to the next splitter
Ctrl+Shift+Tab, go to the previous splitter
[Re Structure]
Ctrl+Alt+Shift+T, pop up the reconstruction menu
Shift+F6, rename
F6, move
F5, copy
Alt+Delete, delete safely
Ctrl+Alt+N, inline
[find]
Ctrl+F, find
Ctrl+ R, replace
F3, find the next
Shift+F3, find the previous
Ctrl+Shift+F, find in the path
Ctrl+Shift+R, replace
Ctrl+Shift+S in the path , search structure
Ctrl+Shift+M, replace structure
Alt+F7, find usage
Ctrl+Alt+F7, display usage
Ctrl+F7, find usage
Ctrl in the file +Shift+F7, highlight usage in the file
[VCS]
Alt+~, VCS operation menu
Ctrl+K, submit changes
Ctrl+T, update items
Ctrl+Alt+Shift+D, display changes

Guess you like

Origin blog.csdn.net/qq_40084325/article/details/108945200