How do you do block comments in YAML?

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

How do I comment a block of lines in YAML?

11条回答
  •  旧巷少年郎
    2020-12-04 05:05

    Emacs has comment-dwim (Do What I Mean) - just select the block and do a:

    M-;

    It's a toggle - use it to comment AND uncomment blocks.

    If you don't have yaml-mode installed you will need to tell Emacs to use the hash character (#).

提交回复
热议问题