EDITORIAL : I was sailing to the sea , the nickname comes from the name of my girlfriend's name as well. I love technology, open source love, love programming. Technology is open source, knowledge is shared. This blog is a little summary and record their own learning, if you have the Java , algorithms interested, you can focus on my dynamic, we learn together. With the knowledge to change the fate, let our family live a better life 。
1. editing shortcuts
Editing shortcuts
Introduction
Ctrl+X
Delete a row
Ctrl+D
Copy line
Ctrl+/ 或 Ctrl+Shift+/
Commented code
Ctrl + Z
Undo
Ctrl + Shift + Z
Cancel revoked
Ctrl + C
copy
Ctrl + V
Stick
Ctrl + O
Overriding methods
Ctrl + I
Implementation
Ctr+shift+U
Case conversion
Ctrl+Shift+J
Integration of two acts of his party
CTRL+SHIFT+SPACE
Auto-completion of code
ALT + Enter
Introducing package, an automatic correction
ALT+/
Code hints
ALT+INSERT
Generating a code (such as GET, SET method, constructor, etc.)
CTRL+ALT+L
Formatting code
CTRL + ALT +
Auto-indenting
Ctrl+Alt+T
Generates try catch
CTRL + ALT + O
Optimization of classes and packages introduced
2. Find and Replace shortcuts
Find and Replace shortcuts
Introduction
Ctrl + F
Find the current file
Ctrl + Shift + F
Find text in the entire project or a specified window
Ctrl + N
Find a class in the project
Ctrl + Shift + N
Find Files
Ctrl + R
Replace text in the current file
CTRL+SHIFT+R
Replace text in the specified window
Ctrl + W
The syntax is automatically selected according to the code
Ctrl + Shift + W
Reverse is selected automatically according to the code syntax
Ctrl+G
Positioning line
Ctrl+Shift+Backspace
Jump to the last editing position
Ctrl + alt + ← / →
Edited place before and after the jump
Ctrl + Shift + Alt + N
查找 变量 / 方法
ALT+F7
找到你的函数或者变量或者类的所有引用到的地方
Alt + F3
高亮显示所有该选中文本,按 Enter 选中下一个,按 Esc 高亮消失
F4
在当前类中查找变量的来源
Ctrl + Shift + F7
高亮显示所有该选中文本,按 Esc 高亮消失
双击Shift
查找任何内容
3. 编译、运行快捷键
编译、运行快捷键
介绍
Ctrl + F9
编译项目
Ctrl + Shift + F9
编译当前文件
Shift + F10
正常启动
Alt + Shift + F10
弹出 Run 的可选择菜单
Shift + F9
debug模式启动
Alt + Shift + F9
选择 Debug
4. Debug快捷键
Debug快捷键
介绍
F7
在 Debug 模式下,步入,如果当前行断点是一个方法,则进入当前方法体内,如果该方法体还有方法,则不会进入该内嵌的方法中
Shift+F7
智能步入
Alt+Shift+F7
强制步入
F8
在 Debug 模式下,步过,如果当前行断点是一个方法,则不进入当前方法体内
Shift+F8
步出
Alt+Shift+F8
强制步过
alt+F8
在 Debug 模式下,选中查看值
Ctrl+Shift+F8
查看断点
F9
在 Debug 模式下,恢复程序运行。如果该断点下面代码还有断点则停在下一个断点上
Alt+F9
运行至光标的位置
Ctrl+Alt+F9
强制运行至光标处
Alt+F10
定位到断点
5. 重构快捷键
重构快捷键
介绍
Shift + F6
重命名
Ctrl + Alt + C
抽取常量
Ctrl + Alt + F
抽取字段
Ctrl + Alt + M
抽取方法
Ctrl + Alt + P
抽取参数
Ctrl + Alt + V
抽取变量
6. 其他
一个普通标题
一个普通标题
psvm+Tab
生成main方法
sout+tab
生成输出语句
fori
生成for循环for (int i = 0; i< ; i++) { }
iter
生成增强for循环
itar
生成array for代码块
itit
生成iterator 迭代
itli
生成List的遍历
itco
生成Collection迭代
Ctrl + C
复制文件名
Ctrl + Shift + C
复制文件的完整路径
Ctrl + E
显示最近打开的文件
Ctrl + Shift + E
显示最近修改的文件列表的弹出层
CTRL+P
方法参数提示
CTRL+Q
可以看到当前方法的声明
CTRL+ALT+SPACE
类名或接口名提示
Ctrl + F12
显示当前文件的结构
Ctrl + H
显示当前类的结构图
Ctrl+Q
显示注释文档信息