![](/s/cache/1d/38/1d3818f61c77b673d336097a7cc01036.png)
Toggle comments
There should be a simple way to comment out lines & blocks of code on all platforms.
Answer
![](/s/cache/cb/a7/cba7831faa68ec585148280bb53e0296.png)
Textastic 4.1 for Mac adds the new keyboard shortcuts “Toggle Comment” (Cmd-/) and “Toggle Block Comment” (Cmd-Option-/).
![](/s/cache/90/e1/90e12b8c7126ac21cb046ec9d24a786f.png)
Is there a way to define the comment being toggled? I created a syntax for Hugo templating and when I am editing html template files with my custom Hugo syntax it would be very helpful were I able to define the comment snippet somewhere such that it knew to use `{{/*` cursor `*/}}` rather than `<!--` cursor `-->`
![](/s/cache/cb/a7/cba7831faa68ec585148280bb53e0296.png)
This is defined in a .tmPreferences file, typically called "Comments.tmPreferences".
You need to define the TM_COMMENT_START and TM_COMMENT_END shell variables.
Please have a look at https://sublime-text-unofficial-documentation.readthedocs.io/en/latest/reference/comments.html - this web page also contains an example at the end of the page.
Customer support service by UserEcho
Textastic 4.1 for Mac adds the new keyboard shortcuts “Toggle Comment” (Cmd-/) and “Toggle Block Comment” (Cmd-Option-/).