文档注释
要设置文档注释的全局首选项,请选择“Preferences ” > “Text Editor ” > “Documentation Comments ”。

若要针对特定项目覆盖全局首选项,请参阅“文档代码”。
下表介绍了您可以设置的偏好设置。
| 首选项 | 描述 |
|---|---|
| Enable Doxygen blocks | 在输入/** 、/*! 、//! 或/// 后按Enter键时,自动创建 Doxygen 注释。 |
| Generate brief description | 为被文档化的声明添加一个带有初始描述的brief 命令。仅在选中“Enable Doxygen blocks ”时可用。 |
| Add leading asterisks | 当您在新行继续 C、C++ 或 Java 文档注释(/* 、/*! 或/** )时,添加前导星号。 |
| Doxygen command prefix | 选择是否在 Doxygen 命令前添加@ 或\\ 。Doxygen 允许两种形式。若周围的注释以/** 或/// 开头,请选择Automatic 以使用@ ;若以/*! 或//! 开头,则使用\\ 。 |
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.