Eclipse - Format & Comment
- [1. Correct Indentation](#1. Correct Indentation)
- [2. Format](#2. Format)
- [3. Toggle Comment](#3. Toggle Comment)
- [4. Add Block Comment](#4. Add Block Comment)
- [5. Remove Block Comment](#5. Remove Block Comment)
- References
1. Correct Indentation
Ctrl + A: 选择全部代码
Ctrl + I: 校正缩进
or
right-click -> Source -> Correct Indentation
2. Format
Ctrl + A: 选择全部代码
Ctrl + Shift + F: 代码格式化
or
right-click -> Source -> Format
3. Toggle Comment
Ctrl + Shift + C: 注释
Ctrl + Shift + C: 取消注释
or
right-click -> Source -> Toggle Comment
4. Add Block Comment
Ctrl + Shift + /: 块注释
or
right-click -> Source -> Add Block Comment
5. Remove Block Comment
Ctrl + Shift + Backslash: 取消块注释
or
right-click -> Source -> Remove Block Comment
References
[1] Yongqiang Cheng, https://yongqiang.blog.csdn.net/