默认的样式是:
/*
我是注释
*/
如果想要下面这种要怎么设置?
/**
* 我是注释
*/
/*
我是注释
*/
如果想要下面这种要怎么设置?
/**
* 我是注释
*/
1
Hconk Mar 4, 2022 via iPhone
装个 doxygen
|
3
DrakeXiang Mar 4, 2022 至少我从来都是 /** 回车就自动生成第二种了
|
5
karott7 Mar 4, 2022
vscode 自带 jsdoc ,直接 输入 /** 就会补全成你说的第二种
|
6
noe132 Mar 5, 2022
{
"key": "ctrl+shift+/", "command": "editor.action.blockComment", "when": "editorTextFocus && !editorReadonly" }, |
7
noe132 Mar 5, 2022 发错了。。。上面的是普通 block comment 。
{ "key": "ctrl+alt+shift+/", "command": "editor.action.insertSnippet", "args": { "snippet": "/** $1 */" } }, |
8
dcsuibian Mar 5, 2022 文档注释,按#5 说的直接打就好了。这个东西功能上也有区别,不建议只为要个样式这么写。
|
9
yongfrank Nov 17, 2022 https://devblogs.microsoft.com/cppblog/visual-studio-code-c-extension-july-2020-update-doxygen-comments-and-logpoints/
查了好久,这个官方博客里 cpp 的 hover intelliSense 讲得比较清楚,以饗后人。 |