Sublime Forum

Use Python Comment Shortcut in my Syntax

#1

Hi, I recently learn that Cmd + / can toggle your line in comment. My syntax use the Python comment system and I want to include the same shortcut function. I search in Python.tmlanguage but I didn’t find it :confused: Where is it and where I have to place it ? Thanks in advance.

0 Likes

Language specific key binding
#2

sounds like ST2 to me?

Anyway, this is controlled by a tmPreferences file which applies to a particular scope.

http://docs.sublimetext.info/en/latest/reference/comments.html#md-comments-shellvariables

Here is Python’s from ST3:

2 Likes

#3

Work like a charm, thanks !

0 Likes