IntelliJ IDEA complex refactoring operations

IntelliJ IDEA complex refactoring operations

CTRL+SHIFT+INSERT //Multi-purpose pasteboard
CTRL+ALT+INSERT // NEW, new
CTRL+ALT+J //

ALT+HOME locates the column
ALT+F1 locates the column
Ctrl+ Shift+Insert, you can select the clipboard content and insert
Ctrl+Alt+T, you can wrap the code in a block, for example: try/catch
??Ctrl+Enter, import the package, auto-correct
Ctrl+Alt+I, will select The code is automatically indented and arranged, this function can also work when editing JSP files
Ctrl+Alt+O, optimize imported classes and packages
Ctrl+Shift+Space, auto-completion code
Ctrl+Shift+Alt+N, find classes Methods or variables in
Alt+Shift+C, recent changes
Ctrl+space, code hints (conflicts with system input method shortcuts)
Ctrl+X, delete lines
Ctrl+Alt+J, surround
Ctrl+O with dynamic templates, rewrite Method
Ctrl+I, implement method
Alt+F7, find the location of a class, method or variable used in the entire project
?? Ctrl+Shift+Backspace, jump to the last edited place

alt
+~ vcs operation
+1 project
+2 favoraties
+3 find
+4 nothing
+5 nothing
+6 todolist
+7 structure
+8 hierarchy..
+9 history


#############
IntelliJ Idea list of common shortcut keys
Ctrl+Shift + Enter , Statement completion "!", Negative completion, press "!" key Ctrl+E
when inputting expression , recent file Ctrl+Shift+E, recently changed file Shift+Click, you can close the file Ctrl+[ OR ], you can run 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 a constructor/Getter/Setter, etc. Ctrl+Alt+V, you can introduce variables. For example: new String(); automatically imports variable definitions













Ctrl+Alt+T, you can wrap the code in a block, for example: try/catch
Ctrl+Enter, import the package, automatically correct
Ctrl+Alt+L, format the code
Ctrl+Alt+I, automatically execute the selected code Indentation, this feature also works when editing JSP files
Ctrl+Alt+O, Optimize imported classes and packages
Ctrl+R, Replace text
Ctrl+F, Find text
Ctrl+Shift+Space, Autocomplete code
Ctrl+Space , code hints (conflicts with system input method shortcut keys)
Ctrl+Shift+Alt+N, find methods or variables in a class
Alt+Shift+C, recent changes
Alt+Shift+Up/Down, move up/down a line
Shift +F6, Refactor – Rename
Ctrl+X, Delete Line
Ctrl+D, Copy Line
Ctrl+/ or Ctrl+Shift+/, Comment (// or /**/)
Ctrl+J, Autocode (eg: serr)
Ctrl +Alt+J, surround
Ctrl+H with dynamic templates, display class structure diagram (class inheritance hierarchy)
Ctrl+Q, display comment document
Alt+F1, find the location of code
Alt+1, quickly open or hide the project panel
Ctrl+ Alt+left/right, return to the last browsed position
Alt+left/right, switch code view
Alt+Up/Down, quickly move and locate between methods
Ctrl+Shift+Up/Down, move up/down statement
F2 or Shift+F2, highlight errors or warnings to quickly locate
Tab, after entering the code label, press Tab to generate Code
Ctrl+Shift+F7, highlight all the text, press Esc to highlight and disappear
Alt+F3, search down the same text one by one, and highlight
Ctrl+Up/Down, go to the first or last line in the cursor
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, override method
Ctrl+Alt+Space, auto-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 insert the most recently used clipboard content selection into the text
Ctrl+Alt+Shift+V, simply paste
Shift+Esc, which not only moves the focus to the editor, but also hides the current (or last active) tool window
F12, move the focus from the editor to the most 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 a word followed by a statement followed by a line followed by a function
Ctrl+Shift+W, deselect the word where the cursor is located
Alt+F7, find the location of a class, method or variable used in the entire project
Ctrl+I, the implementation method
Ctrl+Shift+U, case conversion
Ctrl+Y, delete Current line


Shift+Enter, insert new line down
psvm/sout, main/System.out.println(); Ctrl+J, see more
Ctrl+Shift+F, global search
Ctrl+F, find /Shift+F3, Find Up/F3, Find Down
Ctrl+Shift+S, Advanced Search
Ctrl+U, Go to Parent
Ctrl+Alt+S, Open Settings Dialog
Alt+Shift+Inert, Turn Column Selection Mode On/Off
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 to delete
Ctrl+”+/-”, the current method expands, Fold
Ctrl+Shift+”+/-”, expand and collapse all
[Debug section, 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, view breakpoint
F8, step over
F7, step into
Shift+F7, smart step into
Shift+F8, step out of
Alt+Shift+F8, Force step over
Alt+Shift+F7, force step into
Alt+F9, run to cursor
Ctrl+Alt+F9, force run to cursor
F9, restore program
Alt+F10, locate breakpoint
Ctrl+F8, switch line break Click
Ctrl+F9, generate project
Alt+1, project
Alt+2, collection
Alt+6, TODO
Alt+7, structure
Ctrl+Shift+C, copy path
Ctrl+Alt+Shift+C, copy reference, you must select the class name
Ctrl+Alt+Y, Sync
Ctrl+~, quick switch scheme (menus of interface appearance, code style, shortcut key mapping, etc.)
Shift+F12, restore default layout
Ctrl+Shift+F12, hide/restore all windows
Ctrl+F4, close
Ctrl +Shift+F4, close active tab
Ctrl+Tab, go to next splitter
Ctrl+Shift+Tab, go to the previous splitter
[refactoring]
Ctrl+Alt+Shift+T, pop up the refactoring menu
Shift+F6, rename
F6, move
F5, copy
Alt+Delete, safely delete
Ctrl+Alt +N, inline
[Find]
Ctrl+F, Find
Ctrl+R, Replace
F3, Find Next
Shift+F3, Find Previous
Ctrl+Shift+F, Find
Ctrl+Shift+R in Path, Replace in Path
Ctrl+Shift+S, search structure
Ctrl+Shift+M, replace structure
Alt+F7, find usage
Ctrl+Alt+F7, show usage
Ctrl+F7, find usage in file
Ctrl+Shift+F7, highlight in file usage

Guess you like

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