Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime 3 toggle comment command doesn't work in Windows

Tags:

I've edited the file Preferences > Key Bindings User, and added this:

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

But the shortcuts doesn't work. What went wrong?

like image 456
Funny Frontend Avatar asked May 26 '15 13:05

Funny Frontend


People also ask

How do you toggle comments in sublime?

The shortcut to comment out or uncomment the selected text or current line: Windows: Ctrl + / Mac: Command ⌘ + / Linux: Ctrl + Shift + /

What is the shortcut for comment in Sublime Text?

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


1 Answers

I solved my problem:

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

Just replace '/' by 'keypad_divide'

like image 87
Funny Frontend Avatar answered Nov 04 '22 00:11

Funny Frontend