Three debugging lines are cluttering a function that otherwise works. They will be useful again the next time this breaks, so they should be commented out rather than deleted — and later, when they are wanted again, uncommented in one go.
Helix knows the comment token for the file’s language, and one command toggles a line comment on every line the selection touches (lesson 8). That makes the job a selection question: get the three lines under one selection, or under one cursor each, and toggle once.
- Extend a line selection down over the block (lesson 5) and toggle.
- Or search for what the lines have in common (lesson 9) and toggle at each match.
- Or put a cursor on each line (lesson 11) and toggle once for all of them.
Undo the whole toggle (lesson 7), or run the same command on the commented lines to bring them back — it removes the token it added.
The goal: make the buffer match the target under the editor.
One route, if you want it
Move to the first print line and press x three times to select all
three lines. Ctrl-c puts a # at the start of each, lined up with the
block’s indentation. Pressing Ctrl-c again on the same selection takes
them back out.