IDEA的日常快捷键大全

简介: IDEA的日常快捷键大全

 更多内容在:https://javaxiaobear.gitee.io/

image.gif


1组:通用型


说明

快捷键

复制代码-copy

ctrl + c

粘贴-paste

ctrl + v

剪切-cut

ctrl + x

撤销-undo

ctrl + z

反撤销-redo

ctrl + shift + z

保存-save all

ctrl + s

全选-select all

ctrl + a

2组:提高编写速度(上)

说明

快捷键

智能提示-edit

alt + enter

提示代码模板-insert live template

ctrl+j

使用xx块环绕-surround with ...

ctrl+alt+t

调出生成getter/setter/构造器等结构-generate ...

alt+insert

自动生成返回值变量-introduce variable ...

ctrl+alt+v

复制指定行的代码-duplicate line or selection

ctrl+d

删除指定行的代码-delete line

ctrl+y

切换到下一行代码空位-start new line

shift + enter

切换到上一行代码空位-start new line before current

ctrl +alt+ enter

向上移动代码-move statement up

ctrl+shift+↑

向下移动代码-move statement down

ctrl+shift+↓

向上移动一行-move line up

alt+shift+↑

向下移动一行-move line down

alt+shift+↓

方法的形参列表提醒-parameter info

ctrl+p

3组:提高编写速度(下)

说明

快捷键

批量修改指定的变量名、方法名、类名等-rename

shift+f6

抽取代码重构方法-extract method ...

ctrl+alt+m

重写父类的方法-override methods ...

ctrl+o

实现接口的方法-implements methods ...

ctrl+i

选中的结构的大小写的切换-toggle case

ctrl+shift+u

批量导包-optimize imports

ctrl+alt+o

4组:类结构、查找和查看源码

说明

快捷键

如何查看源码-go to class...

ctrl + 选中指定的结构 或 ctrl+n

显示当前类结构,支持搜索指定的方法、属性等-file structure

ctrl+f12

退回到前一个编辑的页面-back

ctrl+alt+

进入到下一个编辑的页面-forward

ctrl+alt+

打开的类文件之间切换-select previous/next tab

alt+/

光标选中指定的类,查看继承树结构-Type Hierarchy

ctrl+h

查看方法文档-quick documentation

ctrl+q

类的UML关系图-show uml popup

ctrl+alt+u

定位某行-go to line/column

ctrl+g

回溯变量或方法的来源-go to implementation(s)

ctrl+alt+b

折叠方法实现-collapse all

ctrl+shift+ -

展开方法实现-expand all

ctrl+shift+ +

5组:查找、替换与关闭

说明

快捷键

查找指定的结构

ctlr+f

快速查找:选中的Word快速定位到下一个-find next

ctrl+l

查找与替换-replace

ctrl+r

直接定位到当前行的首位-move caret to line start

home

直接定位到当前行的末位 -move caret to line end

end

查询当前元素在当前文件中的引用,然后按 F3 可以选择

ctrl+f7

全项目搜索文本-find in path ...

ctrl+shift+f

关闭当前窗口-close

ctrl+f4

6组:调整格式

说明

快捷键

格式化代码-reformat code

ctrl+alt+l

使用单行注释-comment with line comment

ctrl + /

使用/取消多行注释-comment with block comment

ctrl + shift + /

选中数行,整体往后移动-tab

tab

选中数行,整体往前移动-prev tab

shift + tab

Debug快捷键

说明

快捷键

单步调试(不进入函数内部)- step over

F8

单步调试(进入函数内部)- step into

F7

强制单步调试(进入函数内部) - force step into

alt+shift+f7

选择要进入的函数 - smart step into

shift + F7

跳出函数 - step out

shift + F8

运行到断点 - run to cursor

alt + F9

继续执行,进入下一个断点或执行完程序 - resume program

F9

停止 - stop

Ctrl+F2

查看断点 - view breakpoints

Ctrl+Shift+F8

关闭 - close

Ctrl+F4

相关文章
|
6天前
idea快捷键大全(纯干货版)
idea快捷键大全(纯干货版)
|
6天前
|
安全
IntelliJ IDEA 快捷键大全(三)
IntelliJ IDEA 快捷键大全
81 0
IntelliJ IDEA 快捷键大全(三)
|
6天前
IntelliJ IDEA 快捷键大全(二)
IntelliJ IDEA 快捷键大全
107 0
|
6天前
IntelliJ IDEA 快捷键大全(一)
IntelliJ IDEA 快捷键大全
93 0
|
6天前
IDEA常用快捷键
IDEA常用快捷键
11 1
|
6天前
|
Windows
IntelliJ IDEA-常用快捷键3
IntelliJ IDEA-常用快捷键(Shift 快捷键)
|
6天前
IntelliJ IDEA-常用快捷键2
IntelliJ IDEA-常用快捷键2(Alt快捷键)
|
6月前
|
IDE Java Linux
IDEA 必备的常用快捷键
IDEA 必备的常用快捷键
|
6月前
idea常用快捷键
idea常用快捷键
208 0
|
8月前
IDEA快捷键大全
IDEA快捷键大全
39 0