Sublime Forum

Toggle lines per line

#1

ST3 has a command to toggle comments, such that a line is commented if it wasn’t before or uncommented otherwise.

first line
# second line (commented)

when i select two lines and toggle the comments it toggles the comments per line individually, meaning that the first line is commented and the second not. Somehow it doesn’t work today it comments out both lines like that

# first line
# # second line

how does toggle comment work?

0 Likes

#2

Comments get togged on a per-selection basis. So if you have multiple selections, each gets toggled:Peek%202021-05-31%2017-52

2 Likes