YAML editor toggle commenting of lines #3676
Unanswered
nagyrobi
asked this question in
Builder features or enhancements
Replies: 2 comments 1 reply
-
|
If you are running under home assistant, you can use the genuine File Editor of HA to edit the yaml files of Esphome. This editor contains your requested feature. |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Did you try to highlight the block of YAML and press |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the enhancement
One thing I really miss from other tools like Notepad++ is to be able to toggle commenting on/off for blocks of yaml code. Like select the portion of text and automatically insert/remove the comment chars at the beginning of the selected lines. Either by right-click or a button in the window top bar.
Use cases
One may need for example a block of
external_componentstemporarily (eg until a PR is being merged). Would be nice to be able to temporarily comment it out instead of deleting it, when checking how the build works without it.But for any part of the code it would be useful. Even for lambdas, especially in multi-line lambdas it would be nice to be able to temporarily comment out some lines. Best would be aware that yaml lines need to be commented with
#, while lambda lines need to be commented with//.Visual examples
No response
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions