简体   繁体   English

如何评论 java 文件

[英]How to comment java file

There is a way to comment the whole class (file) in java?有没有办法在 java 中评论整个 class(文件)?

在此处输入图像描述

like here to comment BinaryTree class.喜欢在这里评论 BinaryTree class。

You have some options to do it:你有一些选择:

  • Without IDE: open the file and in the beginning put / ** and in the end put ** /没有 IDE:打开文件并在开头放/ **,最后放 ** /
  • Eclipse : Ctrl + A (select all the file) and Ctrl +C Eclipse :Ctrl + A(选择所有文件)和 Ctrl +C
  • IntelliJ : Ctrl + A (select all the file) and Ctrl + / (to comment) IntelliJ : Ctrl + A (选择所有文件)和 Ctrl + / (评论)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM