In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you what shortcuts IDEA has, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
[edit]
Ctrl + Space basic code completion (class name, method name, variable name)
Ctrl + Shift + Space intelligent code completion (filter methods, variable lists based on expected types)
Ctrl + Shift + Enter completes this line of code according to the code prompt, ending with a semicolon
Ctrl + P displays parameter information (cursor in parentheses)
Ctrl + Q quickly displays documentation comments for methods and classes (cursor location)
Shift + F1 external documents
Ctrl + Mouse suspension short message
Ctrl + F1 displays descriptions of errors and warnings
Alt + Insert generated code (Getters, Setters, constructor, hashCode/equals, toString)
Ctrl + O overrides parent class methods
Ctrl + I implements the parent interface method
Ctrl + Alt + T generates a surrounded if-else,try-catch,for loop, synchronized code block, outside the selected code
Ctrl + / single-line comment, uncomment
Ctrl + Shift + / Multiline comments, uncomment
Ctrl + W check the code block Select successively increasing code blocks
Ctrl + Shift + W Decrease current selection to previous state
Alt + Q context information
Alt + Enter shows suggested actions and quick fixes
Ctrl + Alt + L reformat code
Ctrl + Alt + O finishing import
Ctrl + Alt + I automatic indentation code
Tab / Shift + Tab indent / unindent selected lines
Ctrl+X,Shift+Delete shear
Ctrl+C,Ctrl+Insert replication
Ctrl+V,Shift+Insert paste
Ctrl+Shift + V paste from the most recent buffer
Ctrl+D repeats the current line or selected code
Ctrl+Y delete a row
Ctrl+Shift + J lines of code join, multiple lines join into one line
Ctrl+Enter line separation
Shift + Enter starts a new line (generates a new line below the current line)
Ctrl + Shift + U Toggle case for word at caret or selected block
Ctrl + Shift +] / [Select till code block end/start
Delete Ctrl + Delete/Backspace to the end / start of the word
Ctrl + NumPad+/- expand / collapse code block
Ctrl + Shift+NumPad+ expand all
Ctrl + Shift+NumPad- collapses all
Ctrl + F4 closes the currently selected (active) Tab (editor window)
[reference lookup] Usage Search
Alt + F7/Ctrl + F7 look up references / find references within files
Ctrl + Shift + F7 highlight references within a file
Ctrl + Alt + F7 display references
[navigation]
Ctrl + N Open Class
Ctrl + Shift + N Open File
Ctrl + Alt + Shift + N open methods, properties (global search)
Alt + Right/Left switch to next / previous Tab
F12 goes back to the previous tool window (when the focus is on the editor)
Esc focus goes back to the Code Editor (when focus is on Tool window)
Shift + Esc hides the active or previous window (Tool window)
Ctrl+Shift+F4 closes the activated Run / Messages / Find /. Tab
Ctrl+G switches to line of code (line number is required)
Ctrl+E displays a list of recently opened files
Ctrl+Alt + Left/Right Navigation back / forward
Ctrl+Shift+Backspace navigates to the previous editing location
Alt + F1 Select current file or symbol in any view
Ctrl + B, Ctrl + Click switch to declaration
Ctrl + Alt + B switch to implementation method / class
Ctrl + Shift + I Open Quick statement Lookup
Ctrl + Shift + B switch to type declaration
Ctrl + U switch to parent method / parent class
Alt + Up/Down move to next / previous method
Ctrl +] / [move the cursor to the end / start position of the code block
Ctrl + F12 file structure information
Hierarchy of Ctrl + H classes (inheritance relationships)
The hierarchical structure of Ctrl + Shift + H method
Hierarchical structure of Ctrl + Alt + H calls
F2 / Shift + F2 next / previous highlight error
F4 / Ctrl + Enter edit source code / display source code
Alt + Home display navigation bar
F11 add or cancel bookmarks on the current line
Add or unname bookmarks on the current line of Ctrl + F11
Ctrl + # [0-9] Open bookmarks according to number
Shift + F11 displays bookmarks
[search and replace] Search/Replace
Double Shift unlimited global search (class name, file name, variable, method, table field, etc.)
Ctrl + F search within the current file
F3 / Shift + F3 find next / previous
Ctrl + R replace within current file
Ctrl + Shift + F find by scope (project, module, package path, etc.)
Ctrl + Shift + R replace by range
Ctrl + Shift + S structured search (Ultimate version only)
Ctrl + Shift + M structured replacement (Ultimate version only)
[template] Live Templates
Ctrl + Alt + J is surrounded by code templates
Ctrl + J insert template
Iter generates iterations in the style of Java SDK 1.5
Inst uses instanceof to check object types and downward transformation
Itco code templates: java.util.Collection collection iteration
Itit code templates: java.util.Iterator iteration
Itli code templates: java.util.List iteration
Psf generates public static final
Thr generates throw new
[restructure] Refactoring
F5 Copy
F6 Mobility
Alt + Delete secure deletion (delete if not referenced)
Shift + F6 rename
Ctrl + F6 modify signature (method, class)
Ctrl + Alt + N Inline
Ctrl + Alt + M extraction method
Ctrl + Alt + V extract variables
Ctrl + Alt + F extract attributes
Ctrl + Alt + C extract constant
Ctrl + Alt + P extraction parameters
[debug] Debugging
F8/F7 step Skip / step Jump
Shift + F7 / Shift + F8 Intelligent step in / out
Alt + F9 run to the cursor
Alt + F8 calculates the value of the expression
F9 let go of the current breakpoint and continue to execute
Ctrl + F8 generates breakpoints and cancels breakpoints
Ctrl + Shift + F8 View breakpoint list
[compile and run] Compile and Run
Ctrl + F9 compile project (compile modifications and dependencies)
Ctrl + Shift + F9 compiles selected files, packages, modules
Alt + Shift + F10/F9 Select configuration and run / debug
Shift + F10/F9 Run/Debug
Ctrl + Shift + F10 runs the context configuration from the editor
[version Control and Local History] VCS/Local History
Ctrl + K / Ctrl + T submit project to VCS/ update from VCS
Alt + Shift + C shows recent changes
Alt + BackQuote (`) 'VCS' Quick prompt
[regular] General
Alt + # [0-9] Open the corresponding tool window
Ctrl + S saves all
Ctrl + Alt + Y synchronization
Ctrl + Shift + F12 Editor window maximization / Unmaximization
Alt + Shift + F add Collection
Alt + Shift + I Inspect current file with current profile
Ctrl + BackQuote (`) Quick switch current scheme
Ctrl + Alt + S opens the settings dialog box
Ctrl + Alt + Shift + S opens the project structure dialog box
Ctrl + Shift + A Find Action
Ctrl + Tab switches between editor window and tool window
The above is all the contents of the article "what are the shortcut keys for IDEA". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.