Java – A complete list of window system shortcut keys

Ctrl Shortcut Key Introduction

Ctrl + F perform text search in the current file (required)
Ctrl + R perform text replacement in the current file (required)
Ctrl + Z Undo (required)
Ctrl + Y Delete the line where the cursor is or delete the selected line (required)
Ctrl + X Cut the line where the cursor is or Cut the selection
Ctrl + C Copy the line where the cursor is or copy the selection
Ctrl + D Copy the line where the cursor is or copy the selected content and insert the copied content below the cursor position (required)
Ctrl + W progressively selects blocks of code. You can select the word or paragraph where the cursor is located. Continuous pressing will expand the selection range based on the original selection (required)
Ctrl + E displays a list of recently opened file records
Ctrl + N Find class files based on the entered class name
Ctrl + G jumps to the specified line in the current file
Ctrl + J insert custom dynamic code template
Ctrl + P method parameter prompt display
Ctrl + Q above the variable/class name/method name where the cursor is located (you can also press when prompted to add) to display the document content
Ctrl + U Go to the method/interface definition of the parent class of the method where the current cursor is located
Ctrl + B enters or defines the interface of the method/variable where the cursor is located, equivalent to Ctrl + left click
Ctrl + K Submit the project to version control. This project needs to be added to version control to be available.
Ctrl + T version control update project, this project needs to be added to version control to be available
Ctrl + H displays the current class hierarchy
Ctrl + O selects overridable methods
Ctrl + I select inheritable methods
Ctrl + + expand code
Ctrl + - Collapse code
Ctrl + / Comment the line of code where the cursor is located. Different comment symbols will be used according to the current file type (required)
Ctrl + [ Move the cursor to the beginning of the curly brace in the current code
Ctrl + ] Move the cursor to the end of the curly brace of the current code
Ctrl + F1 displays error information at the error code where the cursor is located
Ctrl + F3 Go to the next reference position of the selected word
Ctrl + F4 close the currently edited file
Ctrl + F8 In Debug mode, set the current breakpoint of the cursor. If it is already a breakpoint, remove the breakpoint.
Ctrl + F9 perform Make Project operation
Ctrl + F11 Select files/folders, use mnemonics to set/cancel bookmarks
Ctrl + F12 pops up the current file structure layer. You can enter directly on the pop-up layer for filtering.
Ctrl + Tab switches editing windows. If you press delete during the switching process, the corresponding selected window will be closed.
Ctrl + Enter smart line separation
Ctrl + End jump to the end of the file
Ctrl + Home jump to file header
Ctrl + Space basic code completion, which is occupied by the input method on Windows systems by default and needs to be modified. It is recommended to modify it to Ctrl + comma (required)
Ctrl + Delete deletes the word or Chinese sentence behind the cursor
Ctrl + BackSpace deletes the word or Chinese sentence in front of the cursor
Ctrl + 1,2,3...9 locates the bookmark position corresponding to the value
Ctrl + left click on the open file title to pop up the file path
Ctrl + cursor positioning. Press Ctrl and don’t release it. A summary of the class information where the cursor is located will be displayed.
Ctrl + left arrow key The cursor jumps to the beginning of the left side of the current word/Chinese sentence
Ctrl + right arrow key The cursor jumps to the beginning of the right side of the current word/Chinese sentence
Ctrl + forward arrow key is equivalent to the forward effect of the mouse wheel
Ctrl + back arrow key is equivalent to the backward effect of the mouse wheel

Alt Shortcut Key Introduction

Alt + ` Display the version control common operation menu pop-up layer
Alt + Q pops up a prompt showing the declaration/context information of the current class
Alt + F1 displays the current file selection target pop-up layer. There are many targets in the pop-up layer that can be selected.
Alt + F2 For the previous page, display various browsers to open the target selection pop-up layer
Alt + F3 select text, search for the same text one by one, and highlight it
Alt + F7 Find where the method/variable/class where the cursor is located is called
Alt + F8 In the Debug state, select the object and a debugging box for inputting calculation expressions will pop up to view the debugging results of the input content.
Alt + Home locates/displays the Navigation Bar to the current file
Alt + Enter IntelliJ IDEA provides quick repair options based on the problem where the cursor is located. Different prompts will result depending on the position of the cursor (required)
Alt + Insert code is automatically generated, such as the set / get method of the generated object, constructor, toString(), etc.
Alt + left arrow key Press the left arrow key to switch the currently opened file view
Alt + right arrow key Press the right arrow key to switch the currently opened file view
Alt + forward arrow key The current cursor jumps to the previous method name position of the current file
Alt + back arrow keys The current cursor jumps to the next method name position in the current file
Alt + 1,2,3...9 displays the tabs corresponding to the values, among which 1 is the most commonly used by Project

Shift shortcut key introduction

Shift + F1 If there is an external document, you can connect to the external document
Shift + F2 Jump to the previous highlighted error or warning location
Shift + F3 In search mode, find the previous match
Shift + F4 opens the currently opened file in a new Windows window and retains the old window.
Shift + F6 Rename files/folders
Shift + F7 In Debug mode, smart step. If there are multiple method calls on the line where the breakpoint is located, which method will be entered?
Shift + F8 jumps out in Debug mode, and the effect is the same as F9
Shift + F9 is equivalent to clicking the Debug button on the toolbar
Shift + F10 is equivalent to clicking the Run button on the toolbar
Shift + F11 Pop up the bookmark display layer
Shift + Tab cancel indentation
Shift + ESC hides the current or last active tool window
Shift + End selects the cursor to the end of the current line
Shift + Home selects the cursor to the current line head position
Shift + Enter starts a new line. A line is left blank under the line where the cursor is, and the cursor is positioned on the new line.
Shift + left click. Press this shortcut key on the open file name to close the currently opened file.
Shift + scroll wheel forward and backward scroll the horizontal scroll axis of the current file

Ctrl + Alt Shortcut Key Introduction

Ctrl + Alt + L format code, can be used for the current file and the entire package directory (required)
Ctrl + Alt + O optimizes imported classes and can be used on the current file and the entire package directory (required)
Ctrl + Alt + I The line where the cursor is located or the selected part for automatic code indentation, somewhat similar to formatting
Ctrl + Alt + T pops up the surrounding options popup layer for the selected code
Ctrl + Alt + J pops up the template selection window and adds the selected code to the dynamic template.
Ctrl + Alt + H call hierarchy
Using Ctrl + Alt + B on a called method name will jump to the specific implementation, and you can skip the interface.
Ctrl + Alt + V quickly introduce variables
Ctrl + Alt + Y Sync, refresh
Ctrl + Alt + S Open IntelliJ IDEA system settings
Ctrl + Alt + F7 shows where used. Find the place where the class or variable is called, and use the pop-up box to find it.
Ctrl + Alt + F11 switch to full screen mode
Ctrl + Alt + Enter: A new line is left blank on the line where the cursor is located, and the cursor is positioned on the new line.
Ctrl + Alt + Home pops up the file popup layer associated with the current file
Ctrl + Alt + Space class name auto-completion
Ctrl + Alt + left arrow key to return to the previous operation (required) (note conflicts with other software shortcut keys)
Ctrl + Alt + right arrow key to advance to the previous operation (required) (note conflicts with other software shortcut keys)
Ctrl + Alt + Forward arrow key In search mode, jump to the last searched file
Ctrl + Alt + Back Arrow In search mode, jump to the next searched file

Ctrl + Shift Shortcut Key Introduction

Ctrl + Shift + F Search the entire project or files in the specified directory based on the input content (required)
Ctrl + Shift + R Replace the corresponding content according to the input content, the scope is the entire project or the files in the specified directory (required)
Ctrl + Shift + J automatically merges the next line to the end of the current line (required)
Ctrl + Shift + Z Undo (required)
Ctrl + Shift + W Progressively deselect blocks of code. You can select the word or paragraph where the cursor is located. Continuous pressing will expand the unselected range based on the original selection (required)
Ctrl + Shift + N Locate/open a file/directory by file name. To open a directory, you need to add an extra forward slash after the input content (required)
Ctrl + Shift + U Convert the selected code to uppercase/lowercase in turn (required)
Ctrl + Shift + T generates a unit test class for the current class. If there is already an existing unit test class, you can select it.
Ctrl + Shift + C Copy the current file disk path to the clipboard
Ctrl + Shift + V Pop up cached recently copied Content Manager popup layer
Ctrl + Shift + E Display popup layer of recently modified files list
Ctrl + Shift + H Show method hierarchy
Ctrl + Shift + B jump to type declaration
Ctrl + Shift + I to quickly view the definition of the method or class where the cursor is located
Ctrl + Shift + A Find actions/settings
Ctrl + Shift + / Code block comment (required)
Ctrl + Shift + [ Select from the cursor position to its top bracket position
Ctrl + Shift + ] Select from the cursor position to its bottom bracket position
Ctrl + Shift + + Expand all code
Ctrl + Shift + - Collapse all code
Ctrl + Shift + F7 highlights all selected text, press Esc to highlight
Ctrl + Shift + F8 In Debug mode, specify breakpoint entry conditions
Ctrl + Shift + F9 Compile the selected file/package/Module
Ctrl + Shift + F12 Maximize editor
Ctrl + Shift + Space smart code prompts
Ctrl + Shift + Enter automatically ends the code and automatically adds a semicolon at the end of the line (required)
Ctrl + Shift + Backspace Go back to the last modified place
Ctrl + Shift + 1,2,3...9 quickly add bookmarks with specified values
Ctrl + Shift + Left Arrow Key On the code file, the cursor jumps to the beginning of the left side of the current word/Chinese sentence, and the word/Chinese sentence is selected at the same time
Ctrl + Shift + Right Arrow Key On the code file, the cursor jumps to the beginning of the right side of the current word/Chinese sentence, and the word/Chinese sentence is selected at the same time
Ctrl + Shift + Left Arrow When the cursor focus is on a tool tab, shrink the tab area
Ctrl + Shift + Right Arrow When the cursor focus is on a tool tab, expand the tab area
Ctrl + Shift + Forward arrow key Place the cursor on the method name, move the method to the front of the previous method, and adjust the method sorting
Ctrl + Shift + Back arrow keys Place the cursor on the method name, move the method to the front of the next method, and adjust the method sorting

Alt + Shift Shortcut Key Introduction

Alt + Shift + N select/add task
Alt + Shift + F Show Add to Favorites popup layer
Alt + Shift + C View a list of changes to recently operated items
Alt + Shift + F Add to Favorites
Alt + Shift + I View the current files of the project
Alt + Shift + F7 In Debug mode, the next step is to enter the current method body. If the method body has methods, it will enter the embedded method, and so on.
Alt + Shift + F9 Pops up the Debug selectable menu
Alt + Shift + F10 Pops up Run's selectable menu
Alt + Shift + left-click double-click to select the double-clicked word/Chinese sentence. Press and hold to select other words/Chinese sentences at the same time.
Alt + Shift + Forward arrow key Move the line where the cursor is located to move up
Alt + Shift + Back Arrow keys Move the line where the cursor is located to move down

Ctrl + Shift + Alt Shortcut Key Introduction

Ctrl + Shift + Alt + V Paste without formatting
Ctrl + Shift + Alt + N Go to the specified variable/method
Ctrl + Shift + Alt + S Open current project settings
Ctrl + Shift + Alt + C Copy reference information
other
Shortcut Key Introduction
F2 jumps to the next highlighted error or warning position (required)
F3 In search mode, locate the next match
F4 edit source
F7 In Debug mode, enter the next step. If the current line breakpoint is a method, it will enter the current method body. If the method body has methods, it will not enter the embedded method.
F8 In Debug mode, enter the next step. If the current line breakpoint is a method, it will not enter the current method body.
F9 In Debug mode, resume program execution, but if there are breakpoints in the code below the breakpoint, it will stop at the next breakpoint.
F11 add bookmark
F12 returns to the previous tool window
Tab indent
ESC enters the code file window from the tool window
Double-click Shift to pop up the Search Everywhere pop-up layer.