Sublime Forum

Comment // not working

#1

Hello,

After update 4107, hotkeys for commenting lines ctrl +} stopped working. Any suggestions what should I do?

0 Likes

#2

The key for commenting is generally Ctrl+/ on Windows/Linux or ⌘+/ on MacOS.

If you open the console with View > Show Console and then enter sublime.log_input() and sublime.log_commands() and then try to comment something, what does the log say?

It’s possible that Sublime may be seeing the key as different than you expect; the logging would indicate that.

0 Likes

#3

It appears several users with keyboard layout other than english (used to) use custom bindings to remap keys to correct position. Changes during dev cycle seem to impact some of them. So bindings need to be tweaked. The default binding ctrl+/ means to hit ctrl+# on a german keyboard for instance.

I am not an expert but this key location thing is a bit weird sometimes as some of those bindings seem to point to totally wrong keys.

0 Likes

#4

Hi, i went to the preferences-> keybindings option and changed ctrl +] to ctrl +} and it was functional, thank you!

0 Likes