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/

相关推荐
围城少年16 小时前
mac 安装Eclipse,汉化及安装ERMaster
java·eclipse
风与沙的较量丶2 天前
关于eclipse中的clean up ,format ,clean的一些小说明
java·ide·eclipse
B站计算机毕业设计超人3 天前
计算机毕业设计SpringBoot+Vue.jst网上超市系统(源码+LW文档+PPT+讲解)
vue.js·spring boot·后端·eclipse·intellij-idea·mybatis·课程设计
waicsdn_haha3 天前
Eclipse IDE 2025-03 最新版安装教程(官方下载+环境配置详解)
java·linux·开发语言·ide·windows·fpga开发·eclipse
Distance失落心4 天前
idea任意版本的安装
java·ide·java-ee·eclipse·intellij-idea
B站计算机毕业设计超人4 天前
计算机毕业设计SpringBoot+Vue.jst房屋租赁系统(源码+LW文档+PPT+讲解)
vue.js·spring boot·后端·eclipse·intellij-idea·mybatis·课程设计
云道轩5 天前
为Eclipse IDE安装插件IBM编程助手watsonx Code Assistant
ide·eclipse·ibm数据与人工智能
qq_379455655 天前
Eclipse导入forge-1.21.x
eclipse·我的世界·forge
风与沙的较量丶7 天前
Eclipse自动排版快捷键“按了没有用”的解决办法
java·ide·eclipse
axinawang8 天前
自动创建spring boot应用(eclipse版本)
spring boot·后端·eclipse