当前位置:网站首页>Upgrade idea to 2021.2 shortcut keys
Upgrade idea to 2021.2 shortcut keys
2022-06-26 09:28:00 【Great white bear_ BlankBear】
Because after the upgrade
ReCompile Your options are gone
For a long time , I found that there is another shortcut key that can be used ctrl+shift+F9 ( But your mouse cursor should be on the page you want to compile java The source code of the file instead of the file on the left is online , Bear in mind )
Summarize the shortcut keys
First of all, let's start with IDEA Get about IDEA How to use shortcut keys :
Click in to see how to use all shortcut keys :
Ctrl
Shortcut key Introduce
Ctrl + F Text search in the current file ( necessary )
Ctrl + R Replace text in the current file ( necessary )
Ctrl + Z revoke ( necessary )
Ctrl + Y Deletes the line where the cursor is located or Delete the selected line ( necessary )
Ctrl + X Cut cursor line or Cut 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 selection , And insert the copy under the cursor position ( necessary )
Ctrl + W Progressive selection code block . You can select the word or paragraph where the cursor is , Continuous pressing will expand the selection range based on the original selection ( necessary )
Ctrl + E Show a list of recently opened file records
Ctrl + N According to the input Class name Find class files
Ctrl + G Jump 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 variable where the cursor is / Class name / Method name, etc ( You can also press ), Show document content
Ctrl + U Go to the method of the parent class of the current cursor / Interface definition
Ctrl + B Enter the method where the cursor is / Variable interface or define , Equivalent to Ctrl + Left click
Ctrl + K Version control commit project , 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 Show the hierarchy of the current class
Ctrl + O Choose an overridable method
Ctrl + I Choose an inheritable method
Ctrl + + Expand code
Ctrl + - Collapse code
Ctrl + / Comment the line code where the cursor is , Different annotation symbols will be used according to different file types ( necessary )
Ctrl + [ Move the cursor to the beginning of the curly bracket in the current code
Ctrl + ] Move the cursor to the end of the curly bracket in the current code
Ctrl + F1 The error code is displayed in the error code
Ctrl + F3 Go to the next reference position of the selected word
Ctrl + F4 Close the current edit file
Ctrl + F8 stay Debug In mode , Set cursor current behavior breakpoint , If it is already a breakpoint, remove the breakpoint
Ctrl + F9 perform Make Project operation
Ctrl + F11 Select Chinese file / Folder , Use mnemonics to set / Bookmark
Ctrl + F12 Pop up the current file structure layer , You can directly input... On the pop-up layer , Screening
Ctrl + Tab Edit window switch , If you press the button in the process of switching delete, Close the selected window
Ctrl + Enter Smart line separation
Ctrl + End Jump to the end of the file
Ctrl + Home Jump to the header
Ctrl + Space Basic code completion , Default in Windows The system is occupied by the input method , Need to change , It is suggested to amend it to Ctrl + comma ( necessary )
Ctrl + Delete Delete the words or Chinese sentences behind the cursor
Ctrl + BackSpace Delete the words or Chinese sentences in front of the cursor
Ctrl + 1,2,3...9 Navigate to the bookmark location of the corresponding value
Ctrl + Left click On the title of the open file , Pop up the file path
Ctrl + Cursor positioning Press Ctrl Don't let go , The information of the class where the summary is located will be displayed
Ctrl + Left key The cursor jumps to the current word / The beginning of the left side of a Chinese sentence
Ctrl + Right Arrow The cursor jumps to the current word / The right beginning of a Chinese sentence
Ctrl + Forward key Equivalent to mouse wheel forward effect
Ctrl + Back key Equivalent to mouse wheel backward effect
Alt
Shortcut key Introduce
Alt + ` Display the pop-up layer of common operation menu of version control
Alt + Q Pop up a hint , Displays the declaration of the current class / Context information
Alt + F1 Display the current file selection target pop-up layer , There are many targets in the pop-up layer to choose from
Alt + F2 For the front page , Show all kinds of browsers, open the target selection pop-up layer
Alt + F3 Select the text , Go down one by one to find the same text , And highlight
Alt + F7 How to find the cursor / Variable / Where the class is called
Alt + F8 stay Debug Under the state of , Selected objects , The debug box for inputting calculation expression will pop up , View the debugging results of this input
Alt + Home location / Display to the current file Navigation Bar
Alt + Enter IntelliJ IDEA According to the cursor problem , Provide quick fix options , The result is different when the cursor is placed in different position ( necessary )
Alt + Insert Code auto generation , Such as generating objects set / get Method , Constructors ,toString() etc.
Alt + Left key Switch the view of the currently opened file by pressing the left direction
Alt + Right Arrow Press the right direction to switch the currently opened file view
Alt + Forward key The current cursor jumps to the previous method name position of the current file
Alt + Back key The current cursor jumps to the next method name position of the current file
Alt + 1,2,3...9 Display the tab of the corresponding value , among 1 yes Project Most used
Shift
Shortcut key Introduce
Shift + F1 If there are external documents, you can connect external documents
Shift + F2 Jump to the previous highlight error or Warning location
Shift + F3 In search mode , Find a match to the previous one
Shift + F4 For the currently open file , Using the new Windows The window opens , The old window remains
Shift + F6 The file / Folder rename
Shift + F7 stay Debug In mode , Smart walk in . There are multiple method calls on the line where the breakpoint is located , Will pop up into which method
Shift + F8 stay Debug In mode , Jump out of , The effect is the same as F9 equally
Shift + F9 It's equivalent to clicking on a toolbar Debug Button
Shift + F10 It's equivalent to clicking on a toolbar Run Button
Shift + F11 Pop up the bookmark display layer
Shift + Tab remove indent
Shift + ESC Hide current or The last active tool window
Shift + End Select the cursor to the end of the current line
Shift + Home Select the cursor to the current line header position
Shift + Enter Start a new line . Leave a line under the cursor line , Cursor to new line position
Shift + Left click Press this shortcut key... On the open filename , You can close the currently open file
Shift + The wheels roll back and forth The horizontal scroll axis of the current file
Ctrl + Alt
Shortcut key Introduce
Ctrl + Alt + L formatting code , You can use... For the current file and the entire package directory ( necessary )
Ctrl + Alt + O Optimize imported classes , You can use... For the current file and the entire package directory ( necessary )
Ctrl + Alt + I Cursor in line or Select parts for automatic code indentation , It's sort of like formatting
Ctrl + Alt + T Pop up the surround option pop-up layer for the selected code
Ctrl + Alt + J Pop up the template selection window , Add the selected code to the dynamic template
Ctrl + Alt + H Call level
Ctrl + Alt + B Using on a method name of a call jumps to the specific implementation , 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 Show where to use . Find where the class or variable is called , Use the pop-up box to find out
Ctrl + Alt + F11 Switch to full screen mode
Ctrl + Alt + Enter There is a line over the line where the cursor is , Cursor to new line
Ctrl + Alt + Home Pop up the file pop-up layer associated with the current file
Ctrl + Alt + Space Class name autocomplete
Ctrl + Alt + Left key Return to the previous operation ( necessary )( Pay attention to conflicts with other software shortcuts )
Ctrl + Alt + Right Arrow Move on to the previous operation ( necessary )( Pay attention to conflicts with other software shortcuts )
Ctrl + Alt + Forward key In search mode , Jump to the last file found
Ctrl + Alt + Back key In search mode , Jump to the next file to find
Ctrl + Shift
Shortcut key Introduce
Ctrl + Shift + F Search the whole project according to the input or Specify the files in the directory ( necessary )
Ctrl + Shift + R Replace the corresponding content according to the input content , The scope is the whole project or Specify the files in the directory ( necessary )
Ctrl + Shift + J Automatically merge the next line to the end of the current line ( necessary )
Ctrl + Shift + Z Cancel cancellation ( necessary )
Ctrl + Shift + W Progressive deselect code block . You can select the word or paragraph where the cursor is , Continuous pressing will expand the unchecked range on the basis of the original selection ( necessary )
Ctrl + Shift + N Locate... By filename / Open file / Catalog , To open a directory, you need to add a forward slash after the input ( necessary )
Ctrl + Shift + U Make the selected code bigger / Rotate lowercase ( necessary )
Ctrl + Shift + T Generate unit test classes for the current class , If there are existing unit test classes, you can choose
Ctrl + Shift + C Copy the current file disk path to the clipboard
Ctrl + Shift + V Pop up cache of the latest copy of the content manager pop-up layer
Ctrl + Shift + E Display the pop-up layer of the recently modified file list
Ctrl + Shift + H Show method hierarchy
Ctrl + Shift + B Jump to type declaration
Ctrl + Shift + I How to quickly see where the cursor is or The definition of a class
Ctrl + Shift + A Find action / Set up
Ctrl + Shift + / Code block comments ( necessary )
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 Highlight all the selected text , Press Esc Highlight disappears
Ctrl + Shift + F8 stay Debug In mode , Specify breakpoint entry conditions
Ctrl + Shift + F9 Compile selected files / package / Module
Ctrl + Shift + F12 Editor maximization
Ctrl + Shift + Space Intelligent code prompt
Ctrl + Shift + Enter Auto end code , Add semicolon automatically at the end of line ( necessary )
Ctrl + Shift + Backspace Go back to the last modification
Ctrl + Shift + 1,2,3...9 Quickly add bookmarks with specified values
Ctrl + Shift + Left key On the code file , The cursor jumps to the current word / The beginning of the left side of a Chinese sentence , Select the word at the same time / Chinese sentence
Ctrl + Shift + Right Arrow On the code file , The cursor jumps to the current word / The right beginning of a Chinese sentence , Select the word at the same time / Chinese sentence
Ctrl + Shift + Left key The cursor focus is on the Tools tab , Narrow the tab area
Ctrl + Shift + Right Arrow The cursor focus is on the Tools tab , Expand the tab area
Ctrl + Shift + Forward key Cursor over method name , Move the method to the front of the previous method , Adjust the method order
Ctrl + Shift + Back key Cursor over method name , Move the method to the front of the next method , Adjust the method order
Alt + Shift
Shortcut key Introduce
Alt + Shift + N choice / add to task
Alt + Shift + F Show add to Favorites pop-up layer
Alt + Shift + C See the list of changes in recent action items
Alt + Shift + F add to favorites
Alt + Shift + I View the current project file
Alt + Shift + F7 stay Debug In mode , next step , Enter the current method body , If there is a method in the method body , Will enter the embedded method , Follow this cycle into
Alt + Shift + F9 eject Debug Optional menu for
Alt + Shift + F10 eject Run Optional menu for
Alt + Shift + Next, double-left click on Select the double clicked word / Chinese sentence , Hold on , You can choose other words at the same time / Chinese sentence
Alt + Shift + Forward key Move the cursor line up
Alt + Shift + Back key Move the cursor line down
Ctrl + Shift + Alt
Shortcut key Introduce
Ctrl + Shift + Alt + V No format paste
Ctrl + Shift + Alt + N Go to the specified variable / Method
Ctrl + Shift + Alt + S Open the current project settings
Ctrl + Shift + Alt + C Copy reference information
other
Shortcut key Introduce
F2 Jump to the next highlight error or Warning location ( necessary )
F3 In search mode , Go to the next match
F4 Edit source
F7 stay Debug In mode , Go to the next step , If the current line breakpoint is a method , Then enter the current method , If the method body has a method , Will not enter the embedded method
F8 stay Debug In mode , Go to the next step , If the current line breakpoint is a method , Do not enter the current method
F9 stay Debug In mode , Restore program run , But if there is a breakpoint in the code below that breakpoint, stop at the next breakpoint
F11 Bookmark
F12 Go back to the previous tool window
Tab Indent
ESC Enter the code file window from the tool window
Press twice in a row Shift eject Search Everywhere Pop-up layer
Abbreviation generation statement
main Method :psvm + Tab key
Output statement System.out.println ----- sout ------ There is a code prompt , direct enter Just go
If it is formatted output :printf---------souf + enter that will do .
More short prompt completion statements Ctrl + J ------------- Shortcut key to view
enhance for loop You can use what you need name.for extraction
Quickly generate getter ,setter And construction methods : Ctrl + insert --------- Then select the method you want to build -------- ----- This shortcut key can also generate many common and rewritten methods , Such as :hasCode(),equals () etc. .
边栏推荐
猜你喜欢
随机推荐
PHP extracts TXT text to store the domain name in JSON data
2021-11-22 运动规划杂记
Shared by Merrill Lynch data technology expert team, smoking detection related practice based on Jetson nano
There is a strong demand for enterprise level data integration services. How to find a breakthrough for optimization?
【CVPR 2021】Unsupervised Multi-Source Domain Adaptation for Person Re-Identification (UMSDA)
Classified catalogue of high quality sci-tech periodicals in the field of computing
【CVPR 2021】Intra-Inter Camera Similarity for Unsupervised Person Re-Identification (IICS++)
Regular expression learning
"One week's study of model electricity" - capacitor, triode, FET
Bug encountered in training detectron2: the test set cannot be evaluated during training
Function function of gather()
深度学习(初识tensorflow2.版本)之三好学生成绩问题(1)
Self taught neural network series - 3. First knowledge of neural network
Behavior tree file description
Detectron2 save (according to maxap50) model during training_ best. PTH weight
Jz2440 - - - utiliser le programme de gravure uboot
3大问题!Redis缓存异常及处理方案总结
《一周搞定数电》——组合逻辑电路
計算領域高質量科技期刊分級目錄
Jetson TX2 installing the SciPy Library