Sublime Forum

Can not find the toggle comment hotkey


I know that the toggle comment keyboard shortcut is ctrl+/. But when I open the default keyboard shortcuts file in sublime, I can not locate that shortcut combo anywhere in the the shortcuts file. What gives? I can’t find any command in there related to toggle comment either…



Those bindings (on Windows/Linux at least) are:

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

If you don’t see it in the default key bindings in the left hand pane, I would double check that your Packages folder doesn’t contain a folder named Default with a keymap file inside; if it does, that file is overriding the one that ships with Sublime (and is the main culprit for why data would be missing from the file).