IntelliJ IDEA shortcut key animation demonstration

1. Build/compile

Ctrl + F9: build project

This shortcut key is equivalent to the menu【Build】—>【Build Project】

picture

After executing this command, IntelliJ IDEA will compile all classes in the project and output the compilation results to outthe directory. IntelliJ IDEA supports incremental builds, and only compiles modified classes based on the last build.
picture

Ctrl + Shift + F9: recompile the current class

This shortcut key is equivalent to the menu【Build】—>【Recompile 'class name'】

picture
Open the class to be compiled in IntelliJ IDEA, and execute this command to compile the current class.
picture

2. Text editing

Ctrl + X: cut

Cut the selected text, or cut the current line if it is not selected.picture

Ctrl + C:copy

Copy the selected text, or copy the current line if it is not selected.

Ctrl + V: Paste

Ctrl + Alt + Shift + V: paste as plain text

Ctrl + Shift + V: Select paste from history

Select content to paste from the history cut and paste.

picture

Ctrl + D: Copy row

Copy the line where the cursor is located.

picture

Ctrl + Shift + C: copy file path

Copy the path where the selected file is located.

picture

Ctrl + Alt + Shift + C: copy reference

Copy the path of the package, or the name of the class.

picture

Ctrl + S: save all

Ctrl + Z: undo

Undo the content of the previous operation.

Ctrl + Shift + Z: redo

Redo the undone content in the previous step.

picture

Tab:indentation

Shift + Tabl: unindent

picture

Ctrl + Alt + I: auto-indent lines

Automatically indent to canonical position.

picture

Shift + Enter: start a new line

Start a new line regardless of whether the cursor is at the end of the line.

picture

Ctrl + Alt + Enter: start a new line before the current line

picture

Ctrl + Y: delete row

Delete the current line.

picture

Ctrl + Shift + U: case conversion

picture

Ctrl + Alt + Shift + Insert: Create a temporary file

Various types of temporary files can be created that are not saved to disk.

picture

Shift + F4: open in a new window

Open the current file in a new window.

picture

3. Cursor operation

Ctrl + Left: Move one word to the left

picture

Ctrl + Right: Move right one word

picture

Home: move to the beginning of the line

End: move to the end of the line

picture

Ctrl + Shift + M: move to braces

Press the shortcut key multiple times to switch between the left and right braces.

picture

Ctrl + [: move to the beginning of the code block

Ctrl + ]: move to the end of the code block

picture

Alt + Down: next method

Alt + Up: previous method

picture

Ctrl + PageUp: move to the top of the page

Ctrl + PageDown: move to the bottom of the page

picture

PageUp: page up

PageDown: page down

picture

Ctrl + Home: move to the beginning of the file

Ctrl + End: move to the end of the file

picture

4. Text Selection

Ctrl + A:select all

Shift + Left: select left

Shift + Right: select right

picture

Ctrl + Shift + Left: Select a word to the left

Ctrl + Shift + Right: Select a word to the right

picture

Shift + Home: Select left to the beginning of the line

Shift + End: Select right to the end of the line

picture

Shift + Up: select up

Shift + Down: select down

picture

Ctrl + Shift + [: Select to the beginning of the code block

Ctrl + Shift + ]: Select to the end of the code block

picture

Ctrl + Shift + PageUp: select to the top of the page

Ctrl + Shift + PageDown: select to the bottom of the page

picture

Shift + PageUp: page up selection

Shift + PageDown: Scroll down to select

picture

Ctrl + Shift + Home: select to file switch

Ctrl + Shift + End: Select to the end of the file

picture

Ctrl + W: Extended selection

Ctrl + Shift + W: shrink selection

picture

5. Code folding

Ctrl + NumPad+: expand the code block

Ctrl + NumPad-: fold code block

picture

Ctrl + Alt + NumPad+: recursive expansion

Ctrl + Alt + NumPad-: recursive fold

picture

Ctrl + Shift + NumPad+: expand all

Ctrl + Shift + NumPad-: Collapse all

picture

Ctrl + .: Collapse selection

6. Multiple carets and range selection

Alt + Shift + Click: add/remove caret

picture

Alt + Shift + Insert: toggle column selection mode

picture

Double click Ctrl+ Up: Clone caret up

Press the keyCtrl twice, then press the Up Arrow key without releasing it.

picture

Double click Ctrl+ Down: Clone the caret down

Press the keyCtrl twice, then press the Down Arrow key without releasing it.

picture

Alt + Shift + G: add the caret to each line in the selection

picture

Alt + J: Select the position where the unit will appear next

Alt + Shift + J: Cancel the last selection

picture

Ctrl + Alt + Shift + J: select all occurrences

picture

Alt + Shift + Middle-Click: Create a rectangular selection

picture

Alt + Click: Drag to create a rectangular selection

picture

Ctrl + Alt + Shift + Click: Drag to create multiple rectangular selections

picture

7. Auxiliary coding

Alt + Enter: Show suggested actions

This shortcut key is also called "Wantong shortcut key", and it will suggest different operations according to different contexts. The demo below is just one of them, there are many usages, you can try it.

picture

Ctrl + Space: code completion

picture

Ctrl + Shift + Space: type matching code completion

picture

Ctrl + Alt + Space: Second code completion

picture

Ctrl + Shift + Enter: Complete the current statement

picture

Ctrl + Alt + L: formatting code

picture

Ctrl + P: parameter information reminder

picture

Ctrl + Q: Quick Documentation

picture

Ctrl + Shift + Up: move statement up

Ctrl + Shift + Down: Move statement down

picture

Ctrl + Alt + Shift + Left: move element to the left

Ctrl + Alt + Shift + Right: move element to the right

picture

Alt + Shift + Up: move up the queue

Alt + Shift + Down: move down the queue

picture

Ctrl + /: add line comment

picture

Ctrl + Shift + /: add block comment

picture

Alt + Insert: production statement

picture

Eight, contextual navigation

Alt + Down: Jump to the next method

Alt + Up: Jump to the previous method

picture

Ctrl + G: Jump to the specified line

picture

Ctrl + Tab: switch active file

picture

Alt + F1: select the location of the file

picture

Ctrl + E: most recent files

picture

Ctrl + Shift + Backspace: Return to the last edit position

picture

Ctrl + Alt + Left: back

Ctrl + Alt + Right:go ahead

picture

Ctrl + Alt + Down: next event

Ctrl + Alt + Up: previous event

picture

Alt + Right: Select the next tab

Alt + Left: Select the next tab

picture

F11: Toggle anonymous bookmarks

picture

Ctrl + Shift + [digit]: Toggle bookmarks with numbers

picture

Ctrl + F11: switch bookmarks using particle

picture

Shift + F11: show all bookmarks

picture

Ctrl + [digit]: jump to a bookmark with a number

picture

Alt + 7: show structure window

picture

Alt + 3: Display the search window

picture

Nine, search operation

double click Shift: find all

picture

Ctrl + F: Find characters (current file)

picture

F3: Find the next

Shift + F3: Find previous

picture

Ctrl + R: replace character (current file)

picture

Ctrl + Shift + F: find characters (all files)

picture

Ctrl + Shift + R: replacement character (all files)

picture

Ctrl + F3: Jump to the next position of the word at the cursor

picture

Ctrl + Shift + N: Find the file and jump

picture

Ctrl + F12: open file structure

picture

Ctrl + Alt + Shift + N: Find symbols (variables, methods, etc.)

picture

Ctrl + Shift + A: find action

picture

10. Symbol Navigation

Alt + F7: find usage

Ctrl + B: Jump to declaration

picture

Ctrl + Shift + B: Jump to the declaration class

picture

Ctrl + Alt + F7: show usage

Ctrl + U:jump to super method

Ctrl + Alt + B: jump to implementation method

picture

Ctrl + Shift + F7: highlight usages in the file

Eleven, code analysis

Alt + Enter: show intent action

picture

Ctrl + F1: show error description

picture

F2: the next highlighted error

Shift + F2: previous highlighted error

picture

Ctrl + Alt + Shift + I: run check by name

picture

Alt + 6: show the problem window

picture

12. Operation and debugging

Double click Ctrl: run all

picture

Shift + F10: run context configuration

picture

Alt + Shift + F10: Open the run window

picture

Shift + F9: Debug context configuration

picture

Alt + Shift + F9: Open the debug window

picture

Ctrl + Alt + F5: attach to process

Ctrl + F2:stop

picture

F9: run to the next breakpoint

picture

Ctrl + Shift + F2: Stop the background process

F8: across calls

picture

Alt + Shift + F8: force across calls

F7: enter call

picture

Shift + F7: smart entry call

Alt + Shift + F7: force entry call

Shift + F8: jump out of the call

picture

Alt + F9: run to the cursor

picture

Ctrl + Alt + F9: force to run to the cursor

Alt + F10: show execution point

picture

Alt + F8: evaluate expression

Ctrl + Alt + F8: Quickly evaluate expressions

Ctrl + F8: toggle line breakpoint

picture

Ctrl + Alt + Shift + F8: toggle temporary line breakpoint

picture

Ctrl + Shift + F8: view breakpoint

picture

Ctrl + Shift + F8: edit breakpoint

picture

Alt + 4: show the running window

Alt + 5: show debug window

Alt + 8: Show the service window

picture

Thirteen, code refactoring

Ctrl + Alt + Shift + T: open refactoring list

picture

Shift + F6: modify the name

Ctrl + F6: modify signature

Ctrl + Alt + N: inline

F6:move

Ctrl + Alt + M:Extraction Method

picture

Ctrl + Alt + F: import domain

Ctrl + Alt + P: import parameters

Ctrl + Alt + V: import variable

Alt + Delete: safe delete

Fourteen, global CVS operation

`Alt + `` : Pop up the CVS window

picture

Ctrl + K:submit

picture

Ctrl + T: update item

picture

Ctrl + Alt + Z: rollback

picture

Ctrl + Shift + K:Pull

picture

Ctrl + Alt + Shift + Down: next modification

Ctrl + Alt + Shift + Up: last modification

Alt + 9: Show version control window

Alt + 0: show commit window

picture

15. Difference Viewer

F7: next difference

Shift + F7: previous diff

picture

Ctrl + Alt + R: accept the left

Ctrl + Alt + A: accept the right

picture

Ctrl + Shift + Tab: Select the opposite diff pane

picture

Ctrl + Shift + D: Show diff settings window

16. Tool window

Shift + Escape: Hide the active tool window

picture

Ctrl + Shift + F12: hide all tool windows

picture

F12: jump to the last tool window

Ctrl + Alt + Shift + Left: Extend the window size to the left

Ctrl + Alt + Shift + Right: Extend the window size to the right

picture

Ctrl + Alt + Shift + Up: Extend the window size to the top

Ctrl + Alt + Shift + Down: Extend the window size to the bottom

picture

Alt + 1: Show project window

Alt + 2: Show bookmark window

Alt + 3: Display the search window

Alt + 4: show the running window

Alt + 5: show debug window

Alt + 6: show the problem window

Alt + 7: show structure window

Alt + 8: Show the service window

Alt + 9: Show version control window

Alt + 0: show commit window

picture

Alt + F12: show terminal window

picture

Guess you like

Origin blog.csdn.net/ximaiyao1984/article/details/132427563