8、MyEclipse for Mac,常用快捷键大全

8、MyEclipse for Mac,常用快捷键大全_第1张图片
快捷键图示

一般快捷键:

1、代码格式化

​ command + shift + F

2、导入包(一般电脑已经自动导入了包)

​ command + shift + O

3、注释

​ 单行:command + /

​ 多行:command + control + /

4、选择一行代码上下移动

​ option/alt + ↑ 或 ↓

5、删除这一行代码

​ command + D

6、查看源码

​ command + 鼠标点击类/方法etc.

提高效率的快捷键:

1、自动生成构造方法

​ command + option/alt + S 选择 Generate Constructors from Superclass...

​ command + option/alt + S 选择 Generate Constructors using Fields...

2、自动生成getter/setter方法

​ command + option/alt + S 选择 Generate Getters and Setters...

注:command + option/alt + S还有很多其他功能,自己试着去感受一下吧~

.
.

♨To Be Continue...♨

你可能感兴趣的:(8、MyEclipse for Mac,常用快捷键大全)