This article has participated in the good article call order activity, click to see: back end, big front end double track submission, 20,000 yuan prize pool for you to challenge!

directory

Preface:

Beginners must master:

Ctrl:

Alt:

Shift:

Ctrl + Alt:

Ctrl + Shift:

Alt + Shift:

Ctrl + Shift + Alt:

Other:

Preface:

IDEA is difficult for beginners, one of the reasons may be that the shortcut key combination is more and complex but it is also very full, basically all functions can be completed through the shortcut keys, if you master the use of all the shortcut keys of IDEA, then you can completely lose the mouse, and does not affect the development efficiency. Achieve the development of twice the result with half the effort.

Beginners must master:

Shortcut Key Name Introduction to Shortcut Keys
Alt+Insert Quickly generate constructors/getters/setters etc
Ctrl+N Quick open class
Ctrl+R Replace text
Ctrl+F Find text
Ctrl+X Delete rows
Ctrl+D Copy the line
Ctrl+O Overriding methods
Ctrl+I Implementation method
Ctrl+Y Delete current row
Shift+Ente Insert the new row down
Ctrl+Shift+F Global search
Ctrl + “+ / -“ Current method expands, collapses
Ctrl + Shift + “+ / -“ All unfold and fold
Ctrl+Enter On a line

Ctrl:

Ctrl + F Current file text lookup
Ctrl + R Current file text replacement
Ctrl + Z undo
Ctrl + Y Delete cursor line
Ctrl + X Cut cursor line
Ctrl + C Copy the cursor line
Ctrl + D Copy the cursor line
Ctrl + E Displays a list of recently opened file records
Ctrl + N Find the class file based on the entered class name
Ctrl + G Jumps to the specified line in the current file
Ctrl + J Insert a custom dynamic code template
Ctrl + P Method parameter prompt display
Ctrl + Q The cursor is located above the variable/class name/method name, etc. (can also be prompted when the supplementary press), display the document content
Ctrl + U Goes to the method/interface definition of the superclass of the method where the current cursor is located
Ctrl + B Enter the interface or definition of the method/variable where the cursor is located, equivalent to Ctrl + left click
Ctrl + H Displays the hierarchy of the current class
Ctrl + / Code on the line where the comment cursor is located uses a different comment symbol depending on the current file type
Ctrl + [ Move the cursor to the start of the curly braces of the current code
Ctrl + ] Move the cursor to the end of the curly braces of the current code
Ctrl + F1 Displays the error message at the error code where the cursor is located
Ctrl + F3 Goes to the next reference position for the selected word
Ctrl + F4 Close the current edit file
Ctrl + F8 In Debug mode, set the current behavior of the cursor to a breakpoint. If it is already a breakpoint, remove the breakpoint
Ctrl + F9 Perform the Make Project operation
Ctrl + F11 Select the file/folder and set it using a mnemonic
Ctrl + F12 The current file structure layer is displayed. You can directly enter the file structure layer for filtering
Ctrl + Tab Edit window switch, if in the process of switch and press delete, is to close the corresponding selected window
Ctrl + Enter Smart line separation
Ctrl + End Skip to the end of file
Ctrl + Home Skip to file header
Ctrl + Space It is used by the input method on the Windows operating system by default. You are advised to change it to Ctrl + comma (mandatory).
Ctrl + Delete Delete the word or sentence after the cursor
Ctrl + BackSpace Delete the word or sentence in front of the cursor
Ctrl + 1, 2, 3… 9 Locate the bookmark location of the corresponding value
Ctrl + Left click On the title of the open file, pop up the file path
Ctrl + Cursor position Press Ctrl not to release to display a summary of the class information where the cursor is located
Ctrl + left arrow key The cursor jumps to the top left of the current word/sentence
Ctrl + Right arrow key The cursor jumps to the beginning of the current word/sentence on the right
Ctrl + forward arrow keys Equivalent to the mouse wheel forward effect
Ctrl + arrow keys Equivalent to the mouse wheel backward effect

Alt:

Alt + ` Displays the version control common operations menu pop-up layer
Alt + Q A prompt displays the declaration/context information for the current class
Alt + F1 Displays the current file select target pop-up layer. There are many targets in the pop-up layer to choose from
Alt + F2 For the previous page, the pop-up layer shows the various browsers opening the target selection
Alt + F3 Select the text and go down one by one to find the same text and highlight it
Alt + F7 Find the cursor where the method/variable/class was called
Alt + F8 In the Debug state, select an object, and a dialog box is displayed. You can view the debugging result of the input expression
Alt + Home Locate/display the Navigation Bar to the current file
Alt + Enter IntelliJ IDEA provides a quick fix option based on the cursor’s location, and the prompt results vary depending on the cursor’s location
Alt + Insert Code is generated automatically, such as generating object set/get methods, constructors, toString(), etc
Alt + left arrow key Press left to switch to the currently open file view
Alt + right arrow key Press the right direction to switch to the currently open file view
Alt + front arrow keys The current cursor jumps to the previous method name location in the current file

Shift:

Shift + F1 Connect to an external document if there is one
Shift + F2 Jumps to the previous highlighted error or warning location
Shift + F3 In search mode, the search matches the previous one
Shift + F4 Open the currently open file in a new Windows window and keep the old window
Shift + F6 Rename a file/folder
Shift + F7 In Debug mode, intelligent step in. There are multiple method calls on the line where the breakpoint is located, which method will pop up
Shift + F8 In Debug mode, jump out and display the same effect as F9
Shift + F9 Equivalent to clicking the Debug button in the toolbar
Shift + F10 Equivalent to clicking the Run button in the toolbar
Shift + F11 Pop-up bookmark display layer
Shift + Tab dedent
Shift + ESC Hides the current or last active tool window

Ctrl + Alt:

Ctrl + Alt + L Format code that can be used for both the current file and the entire package directory
Ctrl + Alt + O Optimized imported classes that can be used for both the current file and the entire package directory
Ctrl + Alt + I Automatic indenting of code in the line or selected part of the cursor, similar to formatting
Ctrl + Alt + T Popup wrap option popup layer for selected code
Ctrl + Alt + J A template selection window pops up, adding the selected code to the dynamic template
Ctrl + Alt + H The hierarchy
Ctrl + Alt + B Using the method name of a call jumps to the implementation and can skip the interface
Ctrl + Alt + V Rapid introduction variable
Ctrl + Alt + Y Sync, refresh
Ctrl + Alt + S Open IntelliJ IDEA system Settings
Ctrl + Alt + F7 Show where to use it. Look for where the class or variable is called, using a pop-up box to find it
Ctrl + Alt + F11 Switch to the full-screen mode
Ctrl + Alt + Enter A line is displayed above the line where the cursor is located, and the cursor moves to the new line
Ctrl + Alt + Home Popup the file popup layer associated with the current file
Ctrl + Alt + Space Class name autocomplete

Ctrl + Shift:

Ctrl + Shift + F Finds the entire project or files within a specified directory based on the input
Ctrl + Shift + R Replace the corresponding content based on the input, ranging from the entire project or files in the specified directory
Ctrl + Shift + J Automatically merges the next line at the end of the current line
Ctrl + Shift + Z Cancel to cancel the
Ctrl + Shift + W Progressive deselect code blocks. You can select the word or paragraph where the cursor is located. Pressing continuously will expand the deselect range
Ctrl + Shift + N Locate/open a file/directory by file name. Open a directory by adding a forward slash after the input
Ctrl + Shift + U Turns the selected code into lowercase/uppercase
Ctrl + Shift + T A unit test class is generated for the current class and can be selected if one already exists
Ctrl + Shift + C Copies the current file disk path to the clipboard
Ctrl + Shift + V Pop-up cache of the most recent copy of the content manager pop-up layer
Ctrl + Shift + E A pop-up layer that displays a list of recently modified files
Ctrl + Shift + H Display method hierarchy
Ctrl + Shift + B Jump to the type declaration
Ctrl + Shift + I Quickly view the definition of the method or class where the cursor is located
Ctrl + Shift + A Look for actions/Settings
Ctrl + Shift + F7 Highlight all the selected text and press Esc to highlight it away
Ctrl + Shift + F8 In Debug mode, specify a breakpoint entry condition
Ctrl + Shift + F9 Compile the selected file/package/Module
Ctrl + Shift + F12 Editor maximization
Ctrl + Shift + Space Intelligent code tips
Ctrl + Shift + Enter Auto-end code, add semicolon automatically at the end of the line

Alt + Shift:

Alt + Shift + N Select/add task
Alt + Shift + F Displays the popup layer added to favorites
Alt + Shift + C View the list of changes of recent operation items
Alt + Shift + F Add to favorites
Alt + Shift + I View the current file of the project
Alt + Shift + F7 In Debug mode, the next step is to enter the body of the current method or, if there are still methods in the body, to enter the embedded method, and so on
Alt + Shift + F9 The Debug optional menu is displayed
Alt + Shift + forward arrow keys Move the cursor line up
Alt + Shift + rear arrow keys Move the cursor line down

Other:

F2 Skip to the next highlighted error or warning location
F3 In search mode, locate the next match
F4 The source editor
F7 In Debug mode, go to the next step. If the current line breakpoint is a method, enter the current method body. If the method body still has methods, do not enter the embedded method
F8 In Debug mode, enter the next step, if the current line breakpoint is a method, do not enter the current method body
F9 In Debug mode, the program resumes running, but stops at the next breakpoint if the code below the breakpoint still has a breakpoint
F11 Add a bookmark
F12 Return to the previous tool window
Tab The indentation
ESC Go to the code file window from the tools window

Ok, that’s all for today, friends like, favorites, comments, one key three go, see you next time ~~