when inserting comment python via super+/ , puts #
@ start of code, this:
i want put #
@ start of line, this:
are there settings allow me this?
create new file in sublime xml syntax, , following contents:
<?xml version="1.0" encoding="utf-8"?> <!doctype plist public "-//apple computer//dtd plist 1.0//en" "http://www.apple.com/dtds/propertylist-1.0.dtd"> <plist version="1.0"> <dict> <key>name</key> <string>comments</string> <key>scope</key> <string>source.python</string> <key>settings</key> <dict> <key>shellvariables</key> <array> <dict> <key>name</key> <string>tm_comment_start</string> <key>value</key> <string># </string> </dict> <dict> <key>name</key> <string>tm_comment_disable_indent</string> <key>value</key> <string>yes</string> </dict> </array> </dict> <key>uuid</key> <string>52cba191-8a6c-4a04-8f2f-0d1642ae10f2</string> </dict> </plist>
you need save file in packages
directory, can located on machine selecting preferences -> browse packages...
. once you've located it, go sublime , save file packages/python/comments.tmpreferences
. sublime text 2, python
directory exist, st3 you'll have create first.
the way file works quite straightforward. tm_comment_start
value tells sublime characters insert comment - hash mark followed space in instance. tm_comment_disable_indent
value indicates whether sublime should insert comment @ beginning of line (yes
), or in front of text (no
, default behavior). please note may need restart sublime in order changes take effect.