1

I use Sublime Text 2 and because I use to work in different computer I don't like to change the default setting, so I note that Ctrl+Shift+/ is overridden in ubuntu but I don't know where to verify this.

Ctrl+Shift+/ is for block comments and is very handy, have any of you fixed this?

Update, I just notice something that is even wrong.

My laptop has num keyboard, that includes in it the / but sublime do nothing when I use Ctrl+/ (in the num pad), but works with the / in my 7, I mean, Ctrl+Shift+7

I'm totally lost now

  • Is override by which action? In other words, what does it happens when you press Ctrl+Shift+/ ? – enzotib Aug 16 '13 at 15:46
  • That is the weird thing, at least in my computer, nothing happens... nohing... if I change it to ctrl+shift+alt+/ ... neither happen and also does work... – raulricardo21 Aug 16 '13 at 16:08
  • BUt if a change to lets say ctrl+shift+c... then it works – raulricardo21 Aug 16 '13 at 16:09
1

I think the correct code for the numpad / is keypad_divide. You should be able to use it by changing the user keybindings as follow:

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

Also, you seem to have an ISO keyboard, if you want to use the 7/ key for comments you have to change your keybindings like so:

[
    { "keys": ["ctrl+7"], "command": "toggle_comment", "args": { "block": false } },
    { "keys": ["ctrl+shift+7"], "command": "toggle_comment", "args": { "block": true } }
]
  • How did you know the correct code was keypad_divide? Where can one look these up? – Richard May 12 '16 at 0:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.