今天是:
带着程序的旅程,每一行代码都是你前进的一步,每个错误都是你成长的机会,最终,你将抵达你的目的地。
title

Idea快捷键(中英文对照)(一)

             快捷键

英文

中文

Editing 编辑部分

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 + F1

External Doc

外部Doc

Ctrl +mouseovercode

Brief Info

方法简要信息

Ctrl + F1

Show descriptions of error or warning at caret

显示错误描述或在在插入符号出弹出警告

Alt + Insert

Generate code... (Getters, Setters, Constructors, hashCode/equals, toString)

生成代码

Ctrl + O

Override methods

重新方法

Ctrl + I

Implement methods

实现方法

Ctrl + Alt + T

Surround with…(if..else,try..catch, 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,Shift+Delete

Cut current line or selected block to clipboard

剪切当前行或选中的到剪贴板

Ctrl+C,Ctrl+Insert

Copy current line or selected block to clipboard

复制当前行或选中的到剪贴板

Ctrl+V,Shift+Insert

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

关闭当前页签

Usage Search 搜索

Alt + F7/Ctrl + F7

Find usages/Find usages in file

在文件中搜索

Ctrl + Shift + F7

Highlight usages in file

在文件中高亮显示

Ctrl + Alt + F7

Show usages

显示用法

Navigation 导航

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

Go to 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

显示导航bar

F11

Toggle bookmark

切换书签

Ctrl + F11

Toggle bookmark with mnemonic

使用助记符切换书签

Ctrl + #[0-9]

Go to numbered bookmark

转到数字标签

Shift + F11

Show bookmarks

展示所有的书签

分享到:

专栏

类型标签

网站访问总量