Source: https://www.cnblogs.com/jajian/p/8012603.html
Say idea is difficult for beginners, perhaps one of the reasons is that the shortcut key combination is many and complex but it is also very full, basic all functions can be done by shortcut keys, so to speak, if you master all the idea of the shortcut keys to use, then you can completely lose the mouse, and do not affect the development efficiency.
One, Ctrl shortcut keys
CTRL + F text lookup in current file (required) Ctrl + R to replace text in current file (required) Ctrl + Z undo (Required) Ctrl + Y Delete cursor row or delete selected row (required) Ctrl + X
cut cursor row or cut selection Ctrl + C copy cursor row or copy selection Ctrl + D copy cursor row or copy selection and copy content into cursor position below (required) Ctrl + W Progressive Select code block. You can select the word or paragraph in which the cursor is located, and then expand the selected range (required) Ctrl + E to display the most recently opened list of file records (required) Ctrl + N to find the class file based on the name/class name you entered (required) Ctrl + G The current file jumps to the specified line at the CTRL + J Insert custom Dynamic Code template (required) Ctrl + P method parameter prompt display (required)
CTRL + Q cursor in the variable/class name/method name above (can also press when prompted to add), display the contents of the document CTRL + U to the current cursor in the method of the parent class/interface definition (required) Ctrl + B Enter the method of the cursor /variable interface or definition, equivalent to CTRL + Left click (required) CTRL + K version control submit project, need this item to be added to version control to be available CTRL + T version control Update Project, need this item to have added to version control only available CTRL + H< c18/> display the hierarchy of the current class CTRL + O Select an overridable method Ctrl + I Select an inheritable method Ctrl + + Expand Code CTRL +- collapse Code CTRL +/ release cursor line code, Different annotation symbols are used depending on the current file type (required)
CTRL + [ move the cursor to the opening brace of the current code CTRL +] move the cursor to the end of the curly brace where the current code is located CTRL + F1 display error message at the error code where the cursor is located (required) Ctrl + F3 Switch to the next reference position of the selected word (required) Ctrl + F4 Close the current edit file Ctrl + F8 in Debug mode, set the cursor current behavior breakpoint, and if it is already a breakpoint, remove the breakpoint Ctrl + F9 execute make Proje CT Operation Ctrl + F11 selected files/folders, use mnemonic settings/bookmarks (required) Ctrl + F12 pop up the current file structure layer, can be entered directly on the popup layer, filter Ctrl + TAB edit window switch, if the process in the switch Press DELETE again to close the corresponding selected window
CTRL + END jumps to the end of the file Ctrl + Home jump to file header Ctrl + Space Base code completion, default on the Windows system by the input method, need to be modified, recommended to change to CTRL + comma (required) Ctrl + Dele Te Delete the word after the cursor or the Chinese sentence (required) Ctrl +backspace Delete the word in front of the cursor or the Chinese sentence (required) Ctrl +1,2,3...9 navigate to the corresponding numeric bookmark location (required) Ctrl + Left click c15/> the file path that pops up on the open file header (required) CTRL + CURSOR positioning CTRL + do not release, the cursor is displayed with the class information summary CTRL + LEFT ARROW key cursor jumps to the current word/Chinese sentence to the left of the beginning position (required) Ctrl + Right Jumps to the right- hand position of the current Word/Chinese sentence (required) CTRL + Previous arrow key equivalent to mouse wheel forward effect (required) CTRL + REAR arrow key equivalent to mouse wheel backward effect (required)
Second, Alt shortcut key
ALT + ' Show versioning common Actions menu pop-up layer (required) ALT + Q pops up a prompt to display the current class's declaration/context information ALT + F1 display the current file selection target pop-up layer, there are many targets in the pop-up layer can be selected (required) ALT + F2 for the previous page, display various types of browser open target selection pop-up layer ALT + F3 selected text, look down the same text one by one, and highlight ALT + F7 Find the method/variable/class where the cursor is called ALT + F8 in Debu G in the state, the selected object, pop-up can enter the calculation Expression debug box, view the debug results of the input ALT + Home positioning/display to the current file Navigation Baralt + Enter IntelliJ idea based on the problem of the cursor , provides quick fix options, the cursor is placed in the same position as the result of different hints (required) ALT + Insert code automatically generated, such as the Set/get method of the generated object, constructor, ToString (), etc. (required)
ALT + LEFT ARROW key toggles the child view in the currently open window, such as the Debug window has Output, Debugger and other sub-views, with this shortcut can be toggled in the child view (necessary) ALT + RIGHT ARROW key Press to toggle the currently open window in the child view, For example, the Debug window has Output, Debugger and other sub-views, with this shortcut can be toggled in the child View (required) ALT + Forward arrow key current cursor jump to the current file's previous method name location (required) ALT + Rear arrow key The current cursor jumps to the last method name location of the current file (required) Alt +1,2,3...9 displays the corresponding value of the tab, where 1 is the most used by Project (required)
Three, Shift shortcut keys
SHIFT + F1 If there is an external document that can be connected to an external document SHIFT + F2 jumps to the previous highlight error or warning position SHIFT + F3 in Find mode, find matching previous shift + F4 to the currently open file, using the new Wi ndows window open, old window reserved SHIFT + F6 to File/folder rename Shift + F7 in Debug mode, smart step in. There are multiple method calls on the line of the breakpoint, which will pop into which method Shift + F8 in debug mode, the effect is the same as F9 SHIFT + F9 equivalent to clicking the Debug button on the toolbar Shift + F10 equivalent to the click Toolbar Run button SHIFT + F11 Popup bookmark display layer (required) SHIFT + Tab Cancel indent (required) SHIFT + ESC Hide current or last active tool window Shift + END Check cursor to when Forward End position SHIFT + Home Select the cursor to the current outfit position SHIFT + Enter to start a new line. A row below the cursor line, the cursor is positioned to the new line position (required) SHIFT + left click on the Open file name Press this shortcut key, you can close the currently open files (required) SHIFT + scroll wheel scrolling the current file scroll (required)
Four, Ctrl + Alt shortcut keys
CTRL + ALT + L format code, can be used for the current file and the entire package directory (required) CTRL + ALT + O optimize imported classes, can be used for the current file and the entire package directory (required) CTRL + ALT + I cursor row or selected part Automatic code indentation, a bit like formatting Ctrl + ALT + T on the selected code popup wrapping option Pop-up layer (required) CTRL + ALT + J popup template Selection window, add the selected code to the dynamic template Ctrl + ALT + H Call Hierarchy Ctr L + ALT + B is used on the method name of a call will jump to the specific implementation, you can skip the interface Ctrl + ALT + V Fast Introduction Variable CTRL + ALT + Y sync, refresh Ctrl + ALT + S open Intelli J idea system settings (required) Ctrl + Alt + F7 show where to use. Find the place to be called by the class or variable, and use the popup box to find the way
CTRL + ALT + F11 Toggle Full Screen mode Ctrl + ALT + Enter cursor over line above row, cursor positioned to New line (required) Ctrl + ALT + Home popup with file popup with current file associated with CTRL + ALT + Space class name auto Complete CTRL + ALT + LEFT ARROW key back to previous action (required) CTRL + ALT + RIGHT ARROW key advance to last action place (required) Ctrl + ALT + Front arrow key in lookup modulo , skip to the previous Find file Ctrl + ALT + REAR arrow key in Find mode, skip to next found file
Five, Ctrl + Shift shortcut keys
CTRL + SHIFT + F to find the entire item or a file within the specified directory based on the input (required) CTRL + SHIFT + R replaces the corresponding content with the input, scoped to the entire project or within the specified directory file (required) Ctrl + SHIFT + J
automatically merges the next line to the end of the current line (required) CTRL + SHIFT + Z cancel undo (required) Ctrl + SHIFT + W progressive deselect code block. You can select the word or paragraph in which the cursor is located, and then expand the unchecked range (required) CTRL + SHIFT + N to locate/Open the file/directory by the file name, and then add a forward slash (required) CTRL + SHIFT after the input content. + U make a large/lowercase rotation of the selected code (required) Ctrl + Shift + T generates unit test classes for the current class and can be selected if a unit test class already exists (required)
CTRL + SHIFT + C copy current file disk path to clipboard (required) CTRL + SHIFT + V pop-up cache recent copy of Content organizer pop-up layer CTRL + SHIFT + E show recently modified file list popup Ctrl + Shift + H Display method hierarchy Ctrl + SHIFT + B jump to type declaration (required) CTRL + SHIFT + I Quick View cursor method or class definition Ctrl + SHIFT + A Find action/ Set CTRL + SHIFT +/ code block Comments (required) CTRL + SHIFT + [ Select from the cursor position to its top bracket position (required) CTRL + SHIFT +] Select from the position of the cursor to its bottom bracket position (must CTRL + SHIFT + + Expand all code (required) CTRL + SHIFT +- Collapse All code (required)
CTRL + SHIFT + F7 Highlight all the selected text, press ESC to highlight disappear (required) CTRL + SHIFT + F8 in Debug mode, specify breakpoints to enter conditional CTRL + SHIFT + F9 Compile selected text Pieces/Package/Modulectrl + SHIFT + F12 editor maximized (required) CTRL + SHIFT + SPACE SMART code hint CTRL + SHIFT + Enter Auto-end code, end of line automatically add semicolon (required) CTRL + Shift +backspace back to the last modified place (required) CTRL + Shift +1,2,3...9 quickly add a bookmark of the specified value (required) CTRL + SHIFT + Left click to place the cursor on a class variable, Press this shortcut key to navigate directly to the class (required)
CTRL + SHIFT + LEFT ARROW key on the code file, the cursor jumps to the current word/Chinese sentence to the left of the beginning position, while selecting the word/Chinese sentence (required) Ctrl + Shift + RIGHT ARROW key on the code file, the cursor jumps to the right of the current word/Chinese sentence open Header position, select the Word/Chinese sentence (required) Ctrl + SHIFT + FORWARD arrow cursor on method name, move method to previous method, adjust method sort (required) Ctrl + SHIFT + AFTER arrow key cursor on method name, move method to Next Method before, adjust method sort (required)
Six, ALT + Shift shortcut keys
ALT + SHIFT + N Select/Add Task (required) ALT + SHIFT + F display add to Favorites pop-up/Add to Favorites Alt + Shift + C View recent action Item List ALT + Shif T + I View Project current file ALT + SHIFT + F7 in debug mode, Next, enter the current method body, if the method body has methods, it will go into the inline method, according to this loop into the ALT + SHIFT + F9 popup Debug Selectable menu ALT + SHIFT + F10 pop-up Run selectable menu ALT + SHIFT + Left click to Select the Word/Chinese sentence to be double-clicked, press and hold to select other words/Chinese sentence (required) ALT + SHIFT + Forward arrow key Move cursor line up (required) Alt + Shift + Trailing arrow move cursor down (required)
Seven, Ctrl + Shift + Alt shortcut keys
CTRL + SHIFT + ALT + V unformatted paste (required) CTRL + SHIFT + ALT + N go to the specified variable/method Ctrl + Shift + ALT + S Open current project settings (required) Ctrl + Shift + Alt + C Copy reference information
Eight, other shortcut keys
F2 jump to the next highlight error or warning location (required) F3 in Find mode, navigate to the next match F4 Edit source (required) 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 has a method, it will not go into the inline method F8 in debug mode, enter the next, if the current line breakpoint is a method, then does not enter the current method body F9 in debug mode, the recovery program runs, However, if the breakpoint below code has a breakpoint then stop at the next breakpoint F11 Add bookmark (required) F12 back to the previous tool window (required) tab indent (required) ESC from the tool window into the Code file window (required) Double press two times shift Pop-up Search Everywhere pop-up layer
IntelliJ idea Common shortcut keys