IntelliJ IDEA快捷键,基于idea官方快捷键参考卡片英文版翻译

1. 中英对照

快捷键参考卡片,打开是英文版,啰哩啰嗦。我决心翻译一下。

快捷键中文翻译英文

1.1.编辑

Ctrl + Space基本代码完成(任何类、方法或变量的名称)Basic code completion (the name of any class, method or variable)
Ctrl + Shift + Space智能代码完成(按预期类型过滤方法和变量列表)Smart code completion (filters the list of methods and variables by expected type)
Ctrl + Shift + Enter完整的声明Complete statement
Ctrl + P参数信息(在方法调用参数中)Parameter info (within method call arguments)
Ctrl + Q快速文档查找Quick documentation lookup
Shift + Fl外部文件External Doc
Ctrl + hover简要信息Brief Info
Ctrl + F1在插入符号处显示错误或警告的描述Show descriptions of error or warning at caret
Alt + Insert生成代码…(Getters、Setters、Constructors、hashCode、equals、toString)Generate code… (Getters. Setters.Constructors. hashCode/fequals, toString)
Ctrl + O覆盖方法Override methods
Ctrl + I实现方法Implement methods
Ctrl + Alt + T环绕…(if-else.try…catt:h. for. synchronized.等)Surround with…(if-else.try…catt:h. for. synchronized. etc)
Ctrl + /注释/取消注释行注释Comment/Uncomment with line comment
Ctrl + Shift + /使用块评论评论/取消评论Comment/uncomment with block comment
Ctrl + W选择连续增加的代码块Select successively increasing code blocks
Ctrl + Shift + W将当前选择减少到以前的状态Decrease current selection to previous state
Alt + Q上下文信息Context info
Alt + Enter显示意图操作和快速修复Show intention actions and quick-fixes
Ctrl + Alt + L重新格式化代码Reformat code
Ctrl + Alt + O优化导入Optimize imports
Ctrl + Alt + I自动缩进行Auto-indent line(s)
Tab/Shift + Tab缩进/取消缩进选定的行Indent/unindent selected lines
Ctrl + X将当前行或选定块剪切到剪贴板Cut current line or selected block to clipboard
Ctrl + C将当前行或选定块复制到剪贴板Copy current line or selected block to clipboard
Ctrl + V从剪贴板粘贴Paste from clipboard
Ctrl + Shift + V从最近的缓冲区粘贴…Paste from recent buffers…
Ctrl + D复制当前行或选定块Duplicate current line or selected block
Ctrl + Y删除插入符号处的行Delete line at caret
Ctrl + Shift + J智能线路加入Smart line join
Ctrl + Enter智能分线Smart line split
Shift + Enter开始新行Start new line
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 + NumPad+/-展开/折叠代码块Expand/collapse code block
Ctrl + Shift + NumPad+展开全部Expand all
Ctrl + Shift + NumPad-全部收缩Collapse all
Ctrl + F4关闭活动编辑器选项卡Close active editor tab

1.2.使用搜索

Alt + F7/Ctrl + F7查找用法/在文件中查找用法Find usages/Find usages in file
Ctrl + Shift + F7突出显示文件中的用法Highlight usages in file
Ctrl + Alt + F7显示用法Show usages

1.3.导航

Ctrl + N转到类Go to class
Ctrl + Shift + N转到文件Go to file
Ctrl + Alt + Shift + N转到符号Go to symbol
Alt + Right/Left转到下一个/上一个编辑器选项卡Go to next / previous editor tab
F12返回上一个工具窗口Go back to previous tool window
Esc转到编辑器(从工具窗口)Go to editor (from tool window)
Shift + Esc隐藏活动或最后一个活动窗口Hide active or last active window
Ctrl + Shift + F4关闭活动运行/消息/查找/…选项卡Close active run/messages/ find /… tab
Ctrl + G转到行Goto line
Ctrl + E最近的文件弹出Recent files popup
Ctrl + Alt + Left/Right向后/向前导航Navigate back/ forward
Ctrl + Shift + Backspace导航到最后一个编辑位置Navigate to last edit location
Alt + F1在任何视图中选择当前文件或符号Select current file or symbol in any view
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 + F12文件结构弹出File structure popup
Ctrl + H类型层次结构Type hierarchy
Ctrl + Shift + H方法层次结构Method hierarchy
Ctrl + Alt + H调用层次结构Call hierarchy
F2/Shift + F2下一个/上一个突出显示的错误Next/previous highlighted error
F4/Ctrl + Enter编辑源/查看源Edit source/ View source
Alt + Home显示导航栏Show navigation bar
F11切换书签Toggle bookmark
Ctrl + F11使用助记符切换书签Toggle bookmark with mnemonic
Ctrl + #[0-9]转到编号的书签Go to numbered bookmark
Shift + F11显示书签Show bookmarks

1.4.搜索/替换

Double Shift到处搜索Search everywhere
Ctrl + F寻找Find
F3/Shift + F3然后下一个/查找上一个And next/ Find previous
Ctrl + R代替Replace
Ctrl + Shift + F并且在路径中And in path
Ctrl + Shift + R在路径中替换Replace in path

1.5.实时模板

Ctrl + Alt + J使用实时模板环绕Surround with Live Template
Ctrl + J插入实时模板Insert Live Template
iter根据 Java SDK 1.5 风格进行迭代Iteration according to Java SDK 1.5 style
inst使用 instanceof 检查对象类型并将其向下转换Check object type with instanceof and downcast it
itco迭代 java.util.Collection 的元素Iterate elements of java.util.Collection
itit迭代 java.util.Iterator 的元素Iterate elements of java.util.Iterator
itli迭代 java.util.List 的元素Iterate elements of java.util.List
psfpublic static finalpublic static final
thrthrow newthrow new

1.6.重构

F5复制Copy
F6移动Move
Alt + Delete安全删除Safe Delete
Shift + F6改名Rename
Ctrl + F6更改签名Change Signature
Ctrl + Alt + N排队Inline
Ctrl + Alt + M提取方法Extract Method
Ctrl + Alt + V提取变量Extract Variable
Ctrl + Alt + F提取字段Extract Field
Ctrl + Alt + C提取常数Extract Constant
Ctrl + Alt + P提取参数Extract Parameter

1.7.调试

F8/F7跨过/步入Step over/Step into
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

1.8.编译运行

Ctrl + F9制作项目(编译修改和依赖)Make project (compile modifed and dependent)
Ctrl + Shift + F9编译选定的文件、包或模块Compile selected file, package or module
Alt + Shift + F10/F9选择配置并运行/调试Select configuration and run/and debug
Shift + F10/F9运行/调试Run/Debug
Ctrl + Shift + F10从编辑器运行上下文配置Run context configuration from editor

1.9.VCS/本地历史

Ctrl + K/Ctrl + T将项目提交到 VCS/从 VCS 更新Commit project to VCS/Update from VCS
Alt + Shift + C查看最近的更改View recent changes
Alt + BackQuote(`)VCS 操作弹出窗口VCS Operations Popup

1.10.一般

Alt + #[0-9]打开相应的工具窗口Open corresponding tool window
Ctrl + S保存全部Save all
Ctrl + Alt + Y同步Synchronize
Ctrl + Shift + F12切换最大化编辑器Toggle maximizing editor
Alt + Shift + F添加到收藏夹Add to Favorites
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 + Shift + A寻找行动Find Action
Ctrl + Tab在选项卡和工具窗口之间切换Switch between tabs and tool window

原文件见:【金山文档】 IDEA2021官网快捷键参考卡片中文翻译

2. IDEA快捷键 官方手册卡(英文版)ReferenceCard

手册位置: 帮助 → 键盘快捷键
原文件见【金山文档】 https://kdocs.cn/l/ccRWvs2tvceX
IDEA查看快捷键参考卡片
idea快捷键卡片

posted on 2022-06-14 18:58  小石头小祖宗  阅读(60)  评论(0编辑  收藏  举报  来源

导航