How do you do block comments in YAML?

前端 未结 11 1584
误落风尘
误落风尘 2020-12-04 04:26

How do I comment a block of lines in YAML?

11条回答
  •  Happy的楠姐
    2020-12-04 05:14

    For Visual Studio Code (VSCode) users, the shortcut to comment out multiple lines is to highlight the lines you want to comment and then press:

    ctrl + /

    Pressing ctrl + / again can also be used to toggle comments off for one or more selected lines.

提交回复
热议问题