TheBevyFlock / bevy-template

https://the-bevy-flock.itch.io/bevy-template
Apache License 2.0
24 stars 8 forks source link

Add VSCode settings #33

Closed janhohenheim closed 1 week ago

janhohenheim commented 1 week ago

Should at least have the following:

    "rust-analyzer.cargo.targetDir": true,
benfrankel commented 1 week ago

Is this the setting that makes rust-analyzer use a separate folder for its build cache? If so, doesn't that significantly increase disk usage?

janhohenheim commented 1 week ago

Yes. The increase is not that significant and it's needed on Windows for it to not sometimes arbitrarily decide to yeet your previous compilation. In fact @MiniaczQ just walked into that today.

benfrankel commented 1 week ago

It's unfortunate that JSON doesn't support comments... the tradeoff could be mentioned in the README, though.

janhohenheim commented 1 week ago

Agreed, a section about that on the readme seems wise

benfrankel commented 1 week ago

Huh, VS Code seems to allow // and /* */ comments in tasks.json and settings.json, actually.

EDIT: VS Code uses jsonc, which allows comments and trailing commas: https://github.com/tidwall/jsonc.