JetBrains/educational-plugin

YAML files not formatted when created

niyaznigmatullin opened this issue · 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.

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.