Keyboard shortcut to comment lines in Sublime Text 3

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

    You can add the following lines to Preferences / Key Bindings - User:

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

    This is how I sorted the problem out - replacing "ctrl" with "control" and "/" with "keypad_divide".

提交回复
热议问题