0
点赞
收藏
分享

微信扫一扫

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

芥子书屋 2022-08-25 阅读 36


文章目录

  • ​​1. 中英对照​​
  • ​​2. IDEA快捷键 官方手册卡(英文版)ReferenceCard​​

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

psf

public static final

public static final

thr

throw new

throw 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​​

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


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


举报

相关推荐

0 条评论