Eclipse - Format & Comment

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,

相关推荐
counting money1 小时前
JAVA泛型基础
java·开发语言·eclipse
毕设源码-邱学长7 小时前
【开题答辩全过程】以 智能商品数据分析系统为例,包含答辩的问题和答案
java·eclipse
弗锐土豆2 天前
编程基础-eclipse创建第一个程序
java·eclipse·helloworld·创建工程
Dylan的码园2 天前
try-catch:异常处理的最佳实践与陷阱规避
java·开发语言·eclipse
黄焖鸡能干四碗3 天前
固定资产管理系统(蓝牙标签打印+移动端Java+Vue+Uniapp源码)
java·开发语言·vue.js·eclipse·uni-app
草莓熊Lotso4 天前
Eclipse Compiler for Java (ECJ):安装指南与高效快捷键全解析
java·ide·eclipse
sheji34165 天前
【开题答辩全过程】以 留守儿童志愿者服务系统为例,包含答辩的问题和答案
eclipse
BioRunYiXue8 天前
FRET、PLA、Co-IP和GST pull-down有何区别? 应该如何选择?
java·服务器·网络·人工智能·网络协议·tcp/ip·eclipse
scyylwj21747787979 天前
在Eclipse中配置Tomcat
java·eclipse·tomcat
HillVue9 天前
无招想让钉钉重新酷起来
eclipse·钉钉