Idea快捷键(常用)
程序员文章站
2024-01-01 10:33:46
Navigation:Ctrl + F12 File structure popupCtrl + B , Ctrl + Click Go to declarationCtrl + Alt + B Go to implementation(s)Ctrl + Shift + I Open quick definition lookupCtrl + Shift + B Go to type declarationCtrl + U Go to super-method /...
Navigation:
Ctrl + F12 File structure popup
Ctrl + B , Ctrl + Click Go to declaration
Ctrl + Alt + B Go to implementation(s)
Ctrl + Shift + I Open quick definition lookup
Ctrl + Shift + B Go to type declaration
Ctrl + U Go to super-method / super-class
Alt + Up/Down Go to previous / next method
Ctrl + ]/[ Move to code block end/start
Ctrl + H Type hierarchy
Editing:
Ctrl + Alt + O Import Packages
Alt + Insert Generate code... (Getters, Setters, Constructors, hashCode/equals, toString)
Ctrl + Alt + T Surround with… (if..else, try..catch, for, synchronized, etc.)
Ctrl + O Override methods
Ctrl + I Implement methods
Ctrl + NumPad+/- Expand/collapse code block
Ctrl + Shift + V Paste from recent buffers...
Ctrl + D Duplicate current line or selected block
Ctrl + Shift + U Toggle case for word at caret or selected block
Ctrl + Shift + ]/[ Select till code block end/start
Ctrl + Delete/Backspace Delete to word end/start
Ctrl + Q Quick documentation lookup
Search/Replace:
Double Shift Search everywhere
Ctrl + N Go to class
Ctrl + Shift + N Go to file
Ctrl + Alt + Shift + N Go to symbol
Ctrl + Shift + A Find Action
Alt + Right/Left Go to next / previous editor tab
Ctrl + U Go to super-method / super-class
Usage Search:
Alt + F7/Ctrl + F7 Find usages/Find usages in file
Ctrl + Shift + F7 Highlight usages in file
Ctrl + Alt + F7 Show usages
Ctrl + Alt + Shift + F7 Find all usages
Debugging:
F7/F8 Step into/Step over
Shift + F7 / Shift + F8 Smart step into/Step out
Alt + F9 Run to cursor
Alt + F8 Evaluate expression
F9 Resume program
Ctrl + F8 Toggle breakpoint
Ctrl + Shift + F8 View breakpoints
General:
Ctrl + Shift + F12 Toggle maximizing editor
Alt + Shift + I Inspect current file with current profile
Ctrl + BackQuote (`) Quick switch current scheme
Ctrl + Alt + S Open Settings dialog
Ctrl + Alt + Shift + S Open Project Structure dialog
Ctrl + Tab Switch between tabs and tool window
Ctrl + Alt + Shift + U diagram/UML
//Alt + Q Current class name
Live Templates:
Ctrl + Alt + J Surround with Live Template
Ctrl + J Insert Live Template
iter Iteration according to Java SDK 1.5 style
inst Check object type with instanceof and downcast it
itco Iterate elements of java.util.Collection
itit Iterate elements of java.util.Iterator
itli Iterate elements of java.util.List
psf public static final
thr throw new
本文地址:https://blog.csdn.net/tolmanlau/article/details/107462192