IntelliJ IDEA keyboard shortcuts English version

本文详细介绍了IntelliJ IDEA的各种快捷键操作,包括编辑、搜索、导航、重构等功能,帮助开发者提高工作效率。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

IntelliJ IDEA keyboard shortcuts English version

Editing

ShortcutDescription
Ctrl + SpaceBasic code completion (the name of any class, method or variable)
Ctrl + Shift + SpaceSmart code completion (filters the list of methods and variables by xpected type)
Ctrl + Shift + EnterComplete statement
Ctrl + PParameter info (within method call arguments)
Ctrl + QQuick documentation lookup
Shift + F1External Doc
Ctrl + mouse over codeBrief Info
Ctrl + F1Show descriptions of error or warning at caret
Alt + InsertGenerate code… (Getters, Setters, Constructors, hashCode/equals, toString)
Ctrl + OOverride methods
Ctrl + IImplement methods
Ctrl + Alt + TSurround with… (if…else, try…catch, for, synchronized, etc.)
Ctrl + /Comment/uncomment with line comment
Ctrl + Shift + /Comment/uncomment with block comment
Ctrl + WSelect successively increasing code blocks
Ctrl + Shift + WDecrease current selection to previous state
Alt + QContext info
Alt + EnterShow intention actions and quick-fixes
Ctrl + Alt + LReformat code
Ctrl + Alt + OOptimize imports
Ctrl + Alt + IAuto-indent line(s)
Tab / Shift + TabIndent / unindent selected lines
Ctrl + X / Shift+DeleteCut current line or selected block to clipboard
Shift+DeleteCut current line or selected block to clipboard
Ctrl + C , Ctrl + InsertCopy current line or selected block to clipboard
Ctrl + V , Shift +InsertPaste from clipboard
Ctrl + Shift + VPaste from recent buffers…
Ctrl + DDuplicate current line or selected block
Ctrl + YDelete line at caret
Ctrl + Shift + JSmart line join
Ctrl + EnterSmart line split
Shift + EnterStart new line
Ctrl + Shift + UToggle case for word at caret or selected block
Ctrl + Shift + ] / [Select till code block end/start
Ctrl + Delete / BackspaceDelete to word end/start
Ctrl + NumPad+ / NumPad- Expand/collapse code block
Ctrl + Shift + NumPad+Expand al
Ctrl + Shift + NumPad-Collapse all
Ctrl + F4Close active editor tab

Usage Search

ShortcutDescription
Alt + F7 / Ctrl + F7Find usages/Find usages in file
Ctrl + Shift + F7Highlight usages in file
Ctrl + Alt + F7Show usages

Search/Replace

ShortcutDescription
Double ShiftSearch everywhere
Ctrl + FFind
F3 / Shift + F3Find next / Find previous
Ctrl + RReplace
Ctrl + Shift + FFind in path
Ctrl + Shift + RReplace in path
Ctrl + Shift + SSearch structurally (Ultimate Edition only)
Ctrl + Shift + MReplace structurally (Ultimate Edition only)

Navigation

ShortcutDescription
Ctrl + SpaceBasic code completion (the name of any class, method or variable)
Ctrl + NGo to class
Ctrl + Shift + NGo to file
Ctrl + Alt + Shift + NGo to symbol
Alt + Right / LeftGo to next / previous editor tab
F12Go back to previous tool window
EscGo to editor (from tool window)
Shift + EscHide active or last active window
Ctrl  + Shift + F4Close active run / messages / find / … tab
Ctrl  +  GGo to line
Ctrl +  ERecent files popup
Ctrl  + Alt + Left / RightNavigate back / forward
Ctrl + Shift + BackspaceNavigate to last edit location
Alt + F1Select current file or symbol in any view
Ctrl + B , Ctrl + ClickGo to declaration
Ctrl + Alt + BGo to implementation(s)
Ctrl + Shift + IOpen quick definition lookup
Ctrl + Shift + BGo to type declaration
Ctrl + UGo to super-method / super-class
Alt + Up / DownGo to previous / next method
Ctrl + ] / [Move to code block end/start
Ctrl + F12File structure popup
Ctrl + HType hierarchy
Ctrl + Shift + HMethod hierarchy
Ctrl + Alt + HCall hierarchy
F2 / Shift + F2Next/previous highlighted error
F4 / Ctrl + EnterEdit source / View source
Alt + HomeShow navigation bar
F11Toggle bookmark
Ctrl + F11Toggle bookmark with mnemonic
Ctrl + #[0-9]Go to numbered bookmark
Shift + F11Show bookmarks

Live Templates

ShortcutDescription
Ctrl + Alt + JSurround with Live Template
Ctrl + JInsert Live Template
iterIteration according to Java SDK 1.5 style
instCheck object type with instanceof and downcast it
itcoIterate elements of java.util.Collection
ititIterate elements of java.util.Iterator
itliIterate elements of java.util.List
psfpublic static final
thrthrow new

Refactoring

ShortcutDescription
F5Copy
F6Move
Alt + DeleteSafe Delete
Shift + F6Rename
Ctrl + F6Change Signature
Ctrl + Alt + NInline
Ctrl + Alt + MExtract Method
Ctrl + Alt + VExtract Variable
Ctrl + Alt + FExtract Field
Ctrl + Alt + CExtract Constant
Ctrl + Alt + PExtract Parameter

Debugging

ShortcutDescription
F8 / F7Step over/Step into
Shift + F7 / Shift + F8Smart step into/Step out
Alt + F9Run to cursor
Alt + F8Evaluate expression
F9Resume program
Ctrl + F8Toggle breakpoint
Ctrl + Shift + F8View breakpoints

Compile and Run

ShortcutDescription
Ctrl + F9Make project (compile modifed and dependent)
Ctrl + Shift + F9Compile selected file, package or module
Alt + Shift + F10 / F9Select configuration and run/and debug
Shift + F10 / F9Run/Debug
Ctrl + Shift + F10Run context configuration from editor

VCS/Local History

ShortcutDescription
Ctrl + K / Ctrl / TCommit project to VCS/Update from VCS
Alt + Shift + CView recent changes
Alt + BackQuote (`)‘VCS’ quick popup

General

ShortcutDescription
Alt + #[0-9]Open corresponding tool window
Ctrl + SSave all
Ctrl + Alt + YSynchronize
Ctrl + Shift + F12Toggle maximizing editor
Alt + Shift + FAdd to Favorites
Alt + Shift + IInspect current file with current profile
Ctrl + BackQuote (`)Quick switch current scheme
Ctrl + Alt + SOpen Settings dialog
Ctrl + Alt + Shift + SOpen Project Structure dialog
Ctrl + Shift + AFind Action
Ctrl + TabSwitch between tabs and tool window

reference

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

qwfys200

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值