当前位置:网站首页>Idea shortcut keys
Idea shortcut keys
2022-07-03 03:54:00 【Its Jin R】
- Tips and code generation
Alt + Enter IDEA According to the cursor problem , Provide quick fix options
Ctrl + Alt + T Pop up the surround option pop-up layer for the selected code (try,if And so on )
Alt + Insert Code auto generation , Such as generating objects set / get Method , Constructors ,toString() etc.
Ctrl + O Choose an overridable method
Ctrl + I Choose an achievable method
Ctrl + / Comment the line code where the cursor is , Different annotation symbols will be used according to different file types - choice / Move / Copy code :
Ctrl + W Progressive selection code block
ctrl+Shift+w Progressive deselect code block
Ctrl + D Copy the line where the cursor is or Copy the selection , And insert the copy under the cursor position
Ctrl+Shift+↑ or ↓ : Move the current line or code structure
Ctrl + Y Deletes the line where the cursor is located or Delete the selected line
Ctrl + X Cut cursor line or Cut selection - Code optimization
Ctrl + Alt + O Optimize imported classes , You can use... For the current file and the entire package directory
Ctrl + Alt + L formatting code , You can use... For the current file and the entire package directory - Find and replace
Ctrl + F Text search in the current file
Ctrl + Shift + F Search the whole project according to the input or Specify the files in the directory
Ctrl + R Replace text in the current file
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 - Read the code section
Ctrl + F12 Pop up the current file structure layer ( Class method properties, etc ), You can directly input... On the pop-up layer , Screening
Ctrl + Q The variable where the cursor is / Class name / Method name, etc ( You can also press ), Show document content - Ctrl relevant
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 / The interface or definition of a variable , 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 Display the error message at the error code where the cursor is
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 ALT+/( 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 relevant
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. ( necessary )
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 relevant
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 relevant
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 )
Ctrl + Alt + Right Arrow Move on to the previous operation ( necessary )
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 relevant
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 click Place the cursor over a class variable , Press this shortcut key to navigate directly to this class ( necessary )
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 relevant
Alt + Shift + N choice / add to task
Alt + Shift + F Show add to Favorites pop-up layer / add to favorites
Alt + Shift + C See the list of changes in recent action items
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
Get 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 - other
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
In 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
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 边栏推荐
猜你喜欢

Download and install captura and configure ffmpeg in captura

Without sxid, suid & sgid will be in danger- Shangwen network xUP Nange

105. Detailed introduction of linkage effect realization of SAP ui5 master detail layout mode

Summary of electromagnetic spectrum

Some preliminary preparations for QQ applet development: make an appointment for a development account, download and install developer tools, and create QQ applet

2022deepbrainchain biweekly report no. 104 (01.16-02.15)

NPM: the 'NPM' item cannot be recognized as the name of a cmdlet, function, script file, or runnable program. Please check the spelling of the name. If the path is included, make sure the path is corr

node,npm以及yarn下载安装

TCP/IP模型中的重磅嘉宾TCP--尚文网络奎哥

2022 Shandong Province safety officer C certificate examination questions and Shandong Province safety officer C certificate simulation examination question bank
随机推荐
[learning notes] seckill - seckill project - (11) project summary
FileZilla client download and installation
释放数据力量的Ceph-尚文网络xUP楠哥
Shardingsphere dynamic data source
leetcode:动态规划模板
Dynamic programming: Longest palindrome substring and subsequence
pytorch怎么下载?pytorch在哪里下载?
golang xxx. Go code template
Introduction à mongodb
Commands related to the startup of redis under Linux server (installation and configuration)
npm : 无法将“npm”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
Error in compiled file: error: unmapped character encoding GBK
User value is the last word in the competition of mobile phone market
基于Pytorch和RDKit的QSAR模型建立脚本
Basic operations of mongodb [add, delete, modify, query]
[combinatorics] basic counting principle (addition principle | multiplication principle)
小程序获取用户头像和昵称
[Apple Photo Album push] IMessage group anchor local push
第十届中国云计算大会·中国站:展望未来十年科技走向
Use of sigaction