Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/image-processing/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio code 在VS代码中,以*开头插入多行注释的快捷方式是什么?_Visual Studio Code - Fatal编程技术网

Visual studio code 在VS代码中,以*开头插入多行注释的快捷方式是什么?

Visual studio code 在VS代码中,以*开头插入多行注释的快捷方式是什么?,visual-studio-code,Visual Studio Code,我知道VS Code Linux中的快捷键Ctrl+shift+A可以插入多行注释,但它只是这样插入: /* my comment my code i want to hide etc */ 如何获得这样的评论 /** * my comment * my code i want to hide * etc */ 如果我想得到上面这样的评论,我需要像这样手动插入 /** */ /** * * * * * */ 每次我在注释中点击“回车”,VS代码就会自动插入*如下

我知道VS Code Linux中的快捷键Ctrl+shift+A可以插入多行注释,但它只是这样插入:

/*
my comment
my code i want to hide
etc
*/
如何获得这样的评论

/**
 * my comment
 * my code i want to hide
 * etc
*/
如果我想得到上面这样的评论,我需要像这样手动插入

/**
*/
/**
 * 
 * 
 * 
 * 
 * 
*/
每次我在注释中点击“回车”,VS代码就会自动插入*如下所示

/**
*/
/**
 * 
 * 
 * 
 * 
 * 
*/
看起来VS代码中支持这种注释

但是我不知道不手动输入就插入新文件的捷径


有人知道答案吗?谢谢,

更新:VS代码对此进行了更新,更多信息:

当您键入
/**
时,VS code将知道您想要什么并显示如下

点击
enter
并将代码移动到注释块中


看起来到目前为止还没有快捷键,如果我们想使用这种注释样式,我们需要手动键入以下内容:

/**
*/
然后在评论中点击“回车”