Sort YAML file (specific level) #250
Unanswered
MatthiasVanMeerbeek
asked this question in
Q&A
Replies: 0 comments
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.
-
I'm looking for a way to sort only the second level in a yaml file.
For example, I want to go from this (random sample yaml):
To this:
I created this regex:
(^\s\s\H.*(?:\n^\s\s\h+.*)*)which selects every second level "group", but I can't seem to make it work with the plugin in IntelliJ.Is there a way to do this with this plugin?
Beta Was this translation helpful? Give feedback.
All reactions