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,

相关推荐
sukida1002 天前
在openSUSE-Leap-15.6-DVD-x86_64中使用eclipse-cpp-2026-03-R-linux-gtk-x86_64
eclipse·opensuse·eclipse-cdt
倾听一世,繁花盛开4 天前
Java语言程序设计——篇十三(1)
java·开发语言·ide·eclipse
AC赳赳老秦5 天前
OpenClaw实战案例:用Agent实现每日工作日报自动生成+发送
人工智能·python·职场和发展·eclipse·github·deepseek·openclaw
曹牧7 天前
Eclipse:悬停提示(Hover)
java·ide·eclipse
AC赳赳老秦10 天前
HR必备:OpenClaw批量筛选简历、发送面试通知,优化招聘流程
运维·人工智能·python·eclipse·github·deepseek·openclaw
YJlio10 天前
4月14日热点新闻解读:从金融数据到平台治理,一文看懂今天最值得关注的6个信号
java·前端·人工智能·金融·eclipse·电脑·eixv3
硬汉嵌入式16 天前
GitHub Copilot for Eclipse 即将开源
eclipse·github·copilot
@atweiwei17 天前
用 Rust 构建agent的 LLM 应用的高性能框架
开发语言·后端·rust·langchain·eclipse·llm·agent
BioRunYiXue19 天前
AlphaGenome:DeepMind 新作,基因组学迎来 Alpha 时刻
java·linux·运维·网络·数据库·人工智能·eclipse
alengan20 天前
cocos自动编译-Android自动出apk包
java·eclipse