JetBrains / educational-plugin

Educational plugin to learn and teach programming languages such as Kotlin, Java, Python, JavaScript, and others right inside of JetBrains IntelliJ Platform based IDEs.
https://jetbrains.com/edu-products
Apache License 2.0
151 stars 51 forks source link

YAML files not formatted when created #35

Open niyaznigmatullin opened 2 years ago

niyaznigmatullin commented 2 years ago

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.

igalimov commented 2 years ago

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.