Sublime Forum

Comment shortcut not work

#1

Hi everyone,

I got a hard time to search for solution for the comment shortcut function.
Previously, I was able to do that without doing any setting. Recently, I found that the shortcut is not working.
I can only use Edit > Comment to do the commenting function, which is so annoying.

I search for the solution, finding no luck in fixing this. Even I reinstall and revert the Library support file, it still not work.

Anyone can help?
I am a mac user.

Cliff

0 Likes

#2

hi,
try to call the toggle comment command using super+shift+P and get “Toggle Comment”, if that works you can define a shortcut by your own inside of your user keyboard settings Preferences -> Key Bindings - User

    [code]{ "keys": "super+forward_slash"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": "super+alt+forward_slash"], "command": "toggle_comment", "args": { "block": true } }[/code]

thats just a copy out of the default key settings, put it into your user settings to make sure its getting loaded after everything else. And if that doesnt help deaktivate all plugins, that may interfere with these key bindings.

0 Likes

#3

Thanks a lot,

It didn’t work well with me.
I have 2 mac with same installation of sublime text. My home one didn’t have any problem while my office one can’t use the shortcut.
I even try copy the Application support / Sublime file to my office one. it didn’t work too.

I assume it is some key blinding / mapping things or maybe i installed some software in my office mac that have crush with short key with sublime.

But it is not easy to re-match the key blinding.

Sublime setting is hard for newbie like me.

Cliff

0 Likes

#4

you never specified the language you were trying to toggle comments. if it’s an officially supported language try this viewtopic.php?f=3&t=14621#p55503

0 Likes