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/

相关推荐
智购科技智能售货柜20 天前
顾客已经关门,视觉售货柜还在处理旧画面:延迟积压怎么查?~YH
python·单片机·嵌入式硬件·物联网·eclipse
博风20 天前
eclipse中配置maven,以及在本地使用maven。
java·eclipse·maven
2501_9445215925 天前
Immer 跨端三方库仓颉适配全流程
python·eclipse·django
2501_9445215925 天前
Deepmerge 跨端三方库仓颉适配全流程
java·python·eclipse·github
曹牧25 天前
Eclipse:Subclipse
java·ide·eclipse
小码哥(^_^)1 个月前
人力资源面试题集1
eclipse·1024程序员节
智购科技自动售卖机厂家1 个月前
双摄像头方案F1-score只有0.85,排查发现是上下视角的融合逻辑写反了~YH
python·单片机·嵌入式硬件·算法·eclipse
Baron X1 个月前
Eclipse Temurin 21 (JRE) Alpine 镜像获取、离线导入与推送操作
java·docker·eclipse·temurin
开开心心就好1 个月前
Windows视频播放器推荐,精简版体积更小
java·服务器·开发语言·eclipse·pdf·ocr·音视频
解道Jdon1 个月前
FigCraft把Figma用Rust从零重写了一遍
ide·windows·git·svn·eclipse·github·visual studio