如何在 VS Code 中将切换注释从 @REM 更改为 REM

per*_*hon 5 batch-file visual-studio-code

Ctrl在 VS 代码中,当我使用+切换注释时/,它会用 注释该行@REM。我如何更改它以仅用 注释该行REM

Som*_*ark 3

\resources\app\extensions\batVSCode 安装文件夹的文件夹中(如果您不确定该文件夹在哪里,%localappdata%\Programs\Microsoft VS Code请先检查),有一个名为language-configuration.json. 在文件的最开头,有一段内容是

{"comments":{"lineComment":"@REM"}
Run Code Online (Sandbox Code Playgroud)

将此更改为

{"comments":{"lineComment":"REM"}
Run Code Online (Sandbox Code Playgroud)

(请注意,如果 VSCode 更新,您将必须再次更改此文件。)