vscode-yaml-sort
vscode-yaml-sort copied to clipboard
This VS Code extension exposes the possibility to sort, format and validate yaml files.
Before format:  After format:  If I do one undo:  I can not work out why this is happening, It seems like it is formatting the text twice....
In a file with the following yaml: ``` apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization namespace: monitor resources: - bundle.yaml patches: - target: kind: ClusterRoleBinding name: prometheus-operator patch: |- - op: replace path:...
As the title mentions if I define a custom order using any of `customSortKeywords_1`, `customSortKeywords_2`, or `customSortKeywords_3` and then proceed to use `YAML Sort: Recursively sort all files` the resulting...
This issue was previously discussed in https://github.com/pascalre/vscode-yaml-sort/issues/31 The problem is that the proposed workaround of using `"files.insertFinalNewline": true` only works when sorting a file using `YAML Sort: Sort YAML` or...
After sorting, I get this issue due to wrong indentation. 
Cases that we have many yaml files in a project. Use a global custom sort keys will lead to some kind of conflicts. It would be great if we can...
Hello! Not sure it is easily possible. As far as I understand, currently the plugin sorts keys inside the last "leaves" of the `yaml` "tree" alphabetically or along with custom...
YAML to be sorted ```yml # yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json blocks: - type: prompt alignment: left newline: true segments: - type: iterm style: plain foreground: cyan template: "{{ .PromptMark }}" - type:...
Origin yaml: ``` section: label: '{{''$''}}' ``` Formatted yaml: ``` section: label: {{'''}} ```
When enable both `Use Custom Sort Recursively` and `Sort Arrays`, it is supposed to apply custom sort arrays but actually not. For example: ```yaml python_version: - '3.8' - '3.9' -...