Keyboard shortcut to comment lines in Sublime Text 3

后端 未结 26 2560
深忆病人
深忆病人 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:49

    It seems a bug: http://www.sublimetext.com/forum/viewtopic.php?f=3&t=11157&start=0

    As a workaround, go to Preferences->Key Bindings - User and add these keybindings (if you're using Linux):

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

    Update: This also works on Windows 8 (see @Sosi's comment)

提交回复
热议问题