Intellij IDEA 常用 设置 及 快捷键 (持续更新)

Transparent native-to-ascii conversion以下设置都可以通过 设置中的搜索框 进行关键字搜索

0, 打开Project 设置

Command + ;

1, 打开Module设置

Command + ,

3, 显示当前文件结构

Command + 7

4, 多行注释

control + shift + /

5, 单句代码提示(补全关键字)

control + space

6, 整句智能提示

control + shift + space

7, 折叠当前方法

Command + .

8, 删除当前行

Command + delete

9, 剪切当前行

Command + x

10, 运行

control + r

11, 编译

Command + F9

12, Debug

control + d

13, 运行

control + r

14, 在下方插入一行

Command + enter

15, 快速插入常用方法

control +  enter / Command + n

16, 快速选中代码(从光标行 上下 对称选中)

alt + 上/下

17, 移动选中代码

alt + shift + 上/下

18, 访问光标处代码的 定义

Command + b

19, 返回上一个编辑的文件

Command + [

20, 回到下一个编辑的文件

Command + ]

21, 切换 文件 tab(打开的文件)

Command + shift + [/]

22, 关闭当前tab

Command + w

23, 快速打开class文件

Command + o

24, 快速打开所有文件

Command + shift + o

25, 快速打开方法

alt + Command + o

26, 查看定义

Command + 下

28, 格式化代码

alt + Command + l

29, 快速插入方法 及 其他代码模板

Command + j

30, import 未引入的包

alt + enter

31, 批量删除未使用的import

control + alt + o

32, 快速搜索

shift*2

33, 查看javadoc

control + 鼠标中键
//----------------- 设置 ---------------------

1, 显示行号

Editor -> Appearance -> Show line Numbers

2, 打开内存使用状态

Appearance&Behavior -> Appearance -> Show memory indicator

3, 代码提示不区分大小写

Editor -> General -> Code Completion -> Case sensitive completion -> None

4, 关闭 类 nerver unused 警告(方法, 属性 以此类推)

Editor -> Inspections -> Java -> Declaration redundancy -> Unused declaration -> On the fly editor setting -> 取消勾选 Check Classes

5, 自动 导入/删除 import

Editor -> Auto Import -> Java -> 勾选Optimize imports on the fly 和 Add unambiguous imports on the fly

6, 设置Properties文件编码

Editor -> File Encodings -> 最下方Properties Files 选择UTF-8编码,勾
Transparent native-to-ascii conversion
转载请注明出处:http://duwei.cnblogs.com/
原文地址:https://www.cnblogs.com/duwei/p/4708387.html