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, https://yongqiang.blog.csdn.net/

相关推荐
weixin_BYSJ19872 天前
springboot酒店管理系统--附源码27436
java·spring boot·python·随机森林·贪心算法·eclipse·django
vx-程序开发3 天前
django医院预约挂号系统---附源码23353
java·javascript·spring boot·python·eclipse·django·php
zhongjunyao3 天前
Spec-Driven Development (SDD): The Definitive 2026 Guide
javascript·spring boot·python·eclipse·代理模式
vx-程序开发3 天前
springboot农产品运输服务平台---附源码75498
java·javascript·spring boot·python·eclipse·django·php
vx-程序开发7 天前
【java项目分享】springboot农产品销售平台14952
java·javascript·spring boot·python·eclipse·django·php
知彼解己10 天前
Eclipse Temurin:企业级 Java JDK 发行版的最佳实践
java·ide·eclipse
曹牧11 天前
Eclipse:查看函数的引用情况
java·ide·eclipse
VX_bysjlw98517 天前
基于微信小程序的宠物用品商城系统-后端74346-计算机毕设原创(免费领源码+带部署教程)
java·redis·微信小程序·eclipse·mybatis·idea·微信开发者工具
曹牧20 天前
Eclipse 批量文本替换
java·ide·eclipse
曹牧22 天前
Java:将 IntelliJ IDEA 项目迁移至 Eclipse
java·eclipse·intellij-idea