Keyboard shortcut to comment lines in Sublime Text 3

后端 未结 26 2659
深忆病人
深忆病人 2020-12-02 04:42

In Sublime Text 2 it was possible to comment out a line or a block of lines with Ctrl+/ and Ctrl+Shift+/. According t

26条回答
  •  青春惊慌失措
    2020-12-02 04:43

    This worked just fine for me on Win 10:

        [{ "keys": ["ctrl+7"], "command": "toggle_comment", "args": { "block": false } },
    { "keys": ["ctrl+shift+7"], "command": "toggle_comment", "args": { "block": true } }
    ]
    

    note that "[ ]" are nesassary and it will give you an error if you miss them.

提交回复
热议问题