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/4/webpack/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,我使用默认的切换注释行(editor.action.commentLine)来添加/删除行注释(PHP) 我的评论看起来像 // $someVar = null; 我想将注释行格式从/更改为/~。有没有办法更改默认的行注释格式?我做了一个扩展,可以这样做。演示: 设置非常简单,如下所示: "custom-language-properties": { "php.comments.lineComment": "// ~"

我使用默认的切换注释行(editor.action.commentLine)来添加/删除行注释(PHP)

我的评论看起来像

// $someVar = null;
我想将注释行格式从
/
更改为
/~
。有没有办法更改默认的行注释格式?

我做了一个扩展,可以这样做。演示:

设置非常简单,如下所示:

  "custom-language-properties": {
    "php.comments.lineComment": "// ~"
 }
许多语言都支持修改
blockComments
方括号
(以及
lineComments
),用户可以非常轻松地添加额外的语言支持。

为此,我做了一个扩展。演示:

设置非常简单,如下所示:

  "custom-language-properties": {
    "php.comments.lineComment": "// ~"
 }

许多语言都支持修改
blockComments
方括号
(以及
lineComments
),用户可以非常轻松地添加额外的语言支持。

根据我的研究,我强烈认为您无法做到这一点。但您可以建议team developer添加此功能,谢谢,Masoud。您的链接似乎指向Visual Studio IDE。但我说的是VisualStudio代码。但这并没有改变你评论的主旨。唉,看来你是对的-(根据我的研究,我强烈认为您无法做到这一点。但您可以建议team developer添加此功能,谢谢,Masoud。您的链接似乎指向Visual Studio IDE。但我提到的是Visual Studio代码。但这并没有改变您评论的主旨。唉,似乎您是对的:-(你能分享扩展链接吗?:-)哈哈,我忘了-编辑答案以包含它。谢谢。你能分享扩展链接吗?:-)哈哈,我忘了-编辑答案以包含它。谢谢。