Keyboard shortcut to comment out code in the template editor

I’ve been using the editor a lot and find myself commenting out sections with {# #} as I experiment. Due to the way these comment blocks work it takes a few strokes to comment out sections. It would be nice if ctrl+/ or cmd+/ (depending on the platform) can be used to do this – just like in most IDEs or other editors.

You can do it with Studio Code Editor using Ctrl+/ with single and multiple lines. I learned this after seeing the hotkey combo here.

Home Assistant OS 8.2
Home Assistant Core 2022.6.7
Studio Code Server 5.1.2

1 Like

Thanks, I know others can do it, hence this:

The FR is to support this in the native editor.

1 Like