【问题标题】:Comment a selection of line or block on VSCode在 VSCode 上注释选择的行或块
【发布时间】:2021-01-26 22:33:57
【问题描述】:

vscode中注释行或块的选定部分的快捷方式是什么?

ctrl+/ in windows / linuxcommand+/ in mac 注释整行/行,即使您选择了该行或块的一部分。

我曾经在其他 IDE 中使用ctrl+shift+/

【问题讨论】:

    标签: linux windows macos visual-studio-code comments


    【解决方案1】:

    这种类型的评论被称为Toggle-Block-Comment,它在vscode 中的快捷方式在Windows / Linux 中是Ctrl+Shift+A,在Mac 中是Shift+Option+A,但是您可以简单地将其更改为Ctrl+Shift+/Shift+Option+/,因为最初在vscode 中没有分配给这些键绑定的命令。

    【讨论】:

      猜你喜欢
      • 2020-09-22
      • 2019-05-21
      • 2014-01-15
      • 2021-08-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多