Sublime Forum

Comment Shortcut does not for .s files (Assembly)

#1

Hello Everyone.!! (first post here and excuse my bad use of the language i am greek)
As the tittle of the topic describes neither comment shortcut (Ctrl + /)
nor block comment (Ctrl + Shift + /) shortcut works for .s files (assembly files)
Any ideas how i can solve this?

0 Likes

#2

ST doesn’t ship with any assembly language syntax definitions. It’s up to the syntax definition to tell ST how comments are formatted.

0 Likes

#3

In case the keyboard lay out is the cause, I had success with changing the comment shortcut, following these instructions:

With a non-US keyboard layout the default shortcut Ctrl+/ (Win/Linux) does not work.

I managed to change it into Ctrl+1 as per Robert’s comment by writing

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

to Preferences -> Key Bindings (on the right half, the user keymap).

From https://stackoverflow.com/a/40663089

0 Likes