educational-plugin icon indicating copy to clipboard operation
educational-plugin copied to clipboard

YAML files not formatted when created

Open niyaznigmatullin opened this issue 2 years ago • 1 comments

The plugin seems to create YAML files with no indentation for list items. For instance on adding a task, task-info.yaml looks like this:

type: edu
files:
- name: src/Task.kt
  visible: true
- name: test/Tests.kt
  visible: false

After IDEA's Reformat Code, it becomes:

type: edu
files:
  - name: src/Task.kt
    visible: true
  - name: test/Tests.kt
    visible: false

Probably, would be better to create files according to what IDEA thinks is pretty formatted YAML file, to have consistent formats, because users usually call Reformat Code when manually editing the files.

niyaznigmatullin avatar Aug 28 '22 13:08 niyaznigmatullin

Hi @niyaznigmatullin, I've filed a new feature request in our tracker for this: https://youtrack.jetbrains.com/issue/EDU-5262/. I would also advise adding this issue to your watch list to be 100% sure that you won't miss any updates.

igalimov avatar Sep 05 '22 17:09 igalimov