In php we can use # or // as line comments, and it is configured by default in comments.tmPreferences file as follows:
<dict> <key>name</key> <string>TM_COMMENT_START</string> <key>value</key> <string>// </string> </dict> <dict> <key>name</key> <string>TM_COMMENT_START_2</string> <key>value</key> <string># </string> </dict>
I find the documents in http://docs.sublimetext.info/en/latest/reference/comments.html, additional line comment marks can be used. But it didn’t tell how to choose between them. My question is can I set up separate key bindings for each TM_COMMENT_START mark? And how?
This is the key map setting:
{ “keys”: [“ctrl+/”], “command”: “toggle_comment”, “args”: { “block”: false } }