Home > Java > Javagetting Started > body text

What are the shortcut keys for idea?

醉折花枝作酒筹
Release: 2023-01-13 00:40:10
Original
178559 people have browsed it

Idea shortcut keys are: Ctrl F, Ctrl R, Ctrl Z, Ctrl Y, Ctrl X, Ctrl C, Ctrl D, Alt `, Alt Q, Alt F1, Alt F2, Alt F3, Alt F7, Shift F1, Shift F2, etc.

What are the shortcut keys for idea?

The operating environment of this tutorial: Windows 7 system, IntelliJ IDEA2018.3 version, Dell G3 computer.

Ctrl

##Ctrl XCut the line where the cursor is or Cut the selected contentCtrl CCopy the line where the cursor is or copy the selected contentCtrl D Copy the line where the cursor is or copy the selected content, and insert the copied content below the cursor position Ctrl WProgressive Select the code block. You can select the word or paragraph where the cursor is located. Continuous pressing will expand the selection range based on the original selection Ctrl EDisplay a list of recently opened file recordsCtrl NSearch for class files based on the entered Ctrl GJump to the specified line in the current fileCtrl JInsert a custom dynamic code templateCtrl PMethod parameter prompt displayCtrl QThe variable/class name/method name where the cursor is located, etc. Above (you can also press when prompted to add) to display the document contentCtrl UGo to the method/interface definition of the parent class of the method where the current cursor is locatedCtrl BEnter the interface or define the method/variable where the cursor is located, which is equivalent to Ctrl KVersion control submission project, this project needs to be added to version control before it can be usedCtrl TVersion control update project, this project needs to be added to version control before it can be usedCtrl HDisplay the hierarchy of the current classCtrl OSelect an overridable methodCtrl ISelect an inheritable methodCtrl Expand codeCtrl -Collapse codeCtrl / Comment the line of code where the cursor is, different comment symbols will be used according to the current file type Ctrl [Move the cursor to the beginning of the curly braces of the current codeCtrl ]Move the cursor to the end of the curly braces of the current codeCtrl F1Display error message in the error code where the cursor is locatedCtrl F3Redirect to the selected The next reference position of the wordCtrl F4Close the current editing fileCtrl F8 In Debug mode, set the current breakpoint of the cursor. If it is already a breakpoint, remove the breakpointCtrl F9Execute Make Project operationCtrl F11Select files/folders and use mnemonics to set/cancel bookmarksCtrl F12Pop up the current file structure layer, you can input directly on the pop-up layer for filteringCtrl TabEdit window switching, if you press again during the switching process Delete will close the corresponding selected windowCtrl EnterSmart separated linesCtrl EndGo to the end of the fileCtrl HomeGo to the beginning of the fileCtrl SpaceBasic code completion, which is occupied by the input method on Windows systems by default, needs to be modified. It is recommended to change it to Ctrl DeleteDelete the word or Chinese sentence behind the cursorCtrl BackSpaceDelete the word or Chinese sentence before the cursorCtrl 1,2,3...9Locate the bookmark position of the corresponding valueCtrl left click Clickon the title of the open file to pop up the file pathCtrl Cursor positioningPress Ctrl and don’t let go, the location where the cursor is will be displayed Class information summaryCtrl left arrow keyThe cursor jumps to the beginning of the left side of the current word/Chinese sentenceCtrl Right Arrow KeyThe cursor jumps to the beginning of the right side of the current word/Chinese sentenceCtrl Forward Arrow KeyEquivalent to Mouse wheel forward effectCtrl backward direction keyEquivalent to mouse wheel backward effect

Alt

Shortcut keys Introduction
Ctrl F Search text in the current file (required)
Ctrl R Replace text in the current file (required) Prepare)
Ctrl Z Undo (required)
Ctrl Y Delete the line where the cursor is or delete the selected line (required)
(required)
(required)
class name
Ctrl left-click
(required)
Ctrl comma (required)
##Alt EnterIntelliJ IDEA provides quick fix options based on the problem where the cursor is located. The position of the cursor is different. The result of the prompt is also differentAlt InsertThe code is automatically generated, such as the set/get method and constructor of the generated object , toString(), etc.Alt left direction keyPress the left direction to switch the currently opened file viewAlt Right direction keyPress the right direction to switch the currently opened file viewAlt Forward direction keyThe current cursor jumps to the front of the current file A method name positionAlt back arrow keyThe current cursor jumps to the next method name position in the current fileAlt 1,2,3...9Display the tabs corresponding to the values, of which 1 is the most commonly used by Project
Shortcut keys Introduction
Alt ` Display the version control common operation menu pop-up layer
Alt Q Pop up a prompt to display 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 for selection
Alt F2 For the previous page, display various browsers to open the target selection pop-up layer
Alt F3 Select the text, search for the same text one by one, and highlight it
Alt F7 Find the place 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 Location/Display Go to the Navigation Bar of the current file
(required)
Shift

Shortcut keysIntroduction##Shift F1Shift F2Shift F3 Shift F4Shift F6Shift F7Shift F8F9Shift F9DebugShift F10RunShift F11Shift TabShift ESCShift EndShift HomeShift EnterShift Left-click Shift wheel scrolls forward and backward

Ctrl Alt

If there is an external Documents can be connected to external documents
Jump to the previous highlighted error or warning position
In search mode, search for the previous
For the currently open file, open it in a new Windows window and keep the old window
Rename files/folders
In Debug mode Next, enter intelligently. There are multiple method calls on the line where the breakpoint is located, which method will pop up to enter
In Debug mode, pop out, and the effect will be the same as Same
Equivalent to clicking the button on the toolbar
Equivalent to clicking the button on the toolbar
pops up the bookmark display layer
Unindent
Hide the current or last active Tool window
Select the cursor to the end of the current line
Select Move the cursor to the current line head position
to start a new line. Leave a blank line under the line where the cursor is, and position the cursor at the new line position
and press this shortcut key on the open file name to close it Currently open file
Horizontal scroll axis of the current file
Shortcut keys Introduction
Ctrl Alt L Format code, you can use (required) for the current file and the entire package directory
Ctrl Alt O To optimize imported classes, you can use (required) for the current file and the entire package directory
Ctrl Alt I The line where the cursor is located or select Perform automatic code indentation on some parts, somewhat similar to formatting
Ctrl Alt T Pop up the surrounding option pop-up layer for the selected code
Ctrl Alt J The template selection window pops up and the selected code is added to the dynamic template
Ctrl Alt H Calling level
Ctrl Alt B Using it 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 Synchronize and refresh
Ctrl Alt S Open IntelliJ IDEA system settings
Ctrl Alt F7 Display the place 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 blank line is left on the line where the cursor is located, and the cursor is positioned on the new line
Ctrl Alt Home Pop up with the current line The file has an associated file popup layer
Ctrl Alt Space Class name auto-completion
Ctrl Alt left arrow key Return to the previous operation(required)<span style="text-decoration:underline;"><strong>(note the conflict with other software shortcut keys)</strong></span>
Ctrl Alt right arrow key Go to the previous operation(required)<span style="text-decoration:underline;"><strong>(note the conflict with other software shortcut keys)</strong></span>
Ctrl Alt forward key In search mode, jump to the last searched file
Ctrl Alt back arrow key In search mode, jump to the next searched file

Ctrl Shift

##Ctrl Shift ZUndoCtrl Shift WProgressively deselect code blocks. You can select the word or paragraph where the cursor is located. Continuous pressing will expand the deselected range based on the original selection Ctrl Shift N Locate/open the file/directory by file name. To open the directory, you need to add an extra forward slash after the input content##Ctrl Shift U (required)Ctrl Shift TCtrl Shift CCtrl Shift VCtrl Shift ECtrl Shift HCtrl Shift BCtrl Shift ICtrl Shift ACtrl Shift / (required)Ctrl Shift [Ctrl Shift ]Ctrl Shift Ctrl Shift -Ctrl Shift F7Ctrl Shift F8Ctrl Shift F9Ctrl Shift F12Ctrl Shift SpaceCtrl Shift Enter (required)Ctrl Shift BackspaceCtrl Shift 1,2,3...9Ctrl Shift left arrow keyCtrl Shift right arrow keyCtrl Shift left arrow keyCtrl Shift Right Arrow KeyCtrl Shift Forward Arrow KeyCtrl Shift and back arrow keys Alt Shift
Shortcut keys Introduction
Ctrl Shift F Search the entire project or files in the specified directory based on the input content (required)
Ctrl Shift R According to the input content Replace the corresponding content, the scope is the entire project or the file in the specified directory (required)
Ctrl Shift J Automatically merge the next line into the current one End of line(required)
(required)
(required)
(required)
Convert the selected code to uppercase/lowercase in turn
Yes The current class generates a unit test class. If there is already an existing unit test class, you can select it
Copy the current file disk path to the clipboard
Pop up cached recently copied Content Manager popup layer
Show recent Pop-up layer of modified file list
Display method hierarchy
Jump to the type declaration
Quickly view the definition of the method or class where the cursor is located
Find action/setting
Code block comment
Select from the cursor position to its top bracket position
Select from the cursor position to its bottom bracket position
Expand all codes
Collapse all code
Highlight all the selected text, press Esc to highlight it
In Debug mode, specify breakpoint entry conditions
Compile the selected file /Package/Module
Editor Maximize
Smart code prompt
Automatically end the code, automatically add a semicolon at the end of the line
Return to the last modified place
Quickly add a bookmark with a specified value
On the code file, the cursor jumps to the beginning of the left side of the current word/Chinese sentence, and at the same time Select the word/Chinese sentence
On the code file, the cursor jumps to the beginning of the right side of the current word/Chinese sentence, and at the same time Select the word/Chinese sentence
When the cursor focus is on the tool tab, reduce the tab area
When the cursor focus is on the tool tab, expand the tab area
Place the cursor on the method name, move the method to the front of the previous method, and adjust the method sorting
Place the cursor on the method name , move the method to the front of the next method, adjust the method sorting

Shortcut keysAlt Shift N##Alt Shift FDisplay the pop-up layer added to favoritesAlt Shift CView the change list of recently operated itemsAlt Shift FAdd to FavoritesAlt Shift IView the current file of the projectAlt Shift F7In 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 then loop into Alt Shift F9Pop up the optional menu of Alt Shift F10Pop up 's optional menuAlt Shift double-click to select the double-clicked word/Chinese sentence. Press and hold to select both words and sentences. Select other words/Chinese sentencesAlt Shift forward arrow keyMove the line where the cursor is to move upAlt Shift back Arrow keysMove the line where the cursor is located to move down

Ctrl Shift Alt

Introduction
Select/Add task
Debug
Run
Shortcut keys Introduction
Ctrl Shift Alt V Paste without format
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

Others

Shortcut keys Introduction
F2 Jump to the next highlighted error or warning position (required)
F3 In find mode, Navigate to the next match
F4 Edit source
F7 In Debug mode , go to 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 operation, but if there is a breakpoint in the code below the breakpoint, it will stop at the next breakpoint
F11 Add bookmark
F12 Return to the previous tool window
Tab Indent
ESC Enter the code file window from the tool window
Click Shift twice PopupSearch Everywhere Pop-up layer

Recommended tutorial: "Java"

The above is the detailed content of What are the shortcut keys for idea?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!