Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
295 views
in Technique[技术] by (71.8m points)

VS Code 中的块注释

我的 Windows 系统下的 VS Code,原来在 js 类型的文件里编辑注释,只要敲入/**并回车,会立马产生:

/**
 * |(光标)
 */

我的现状:
image.png
而且光标挪到第一行尾,再回车,也没帮我填充 *

我尝试在 Mac 下禁用所有扩展后体验这个功能,是正常的。

请问,可能是哪些配置影响了这个特性?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

一:
step1:
输入:
/**
出现:
/**|(光标) *
setp2:
回车,
出现:

/**
 * |(光标)
 */

二:
shift + alt + A
出现:
/* */
回车,

/* 
 |(光标)*/

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...