apple / pkl-vscode

Pkl language support for VS Code
https://pkl-lang.org/vscode/current/index.html
Apache License 2.0
107 stars 3 forks source link

[FR] Add code formatter #18

Open p3l1 opened 3 months ago

p3l1 commented 3 months ago

Hello there,

many other language plugins are providing a code formatter to format the given code using the Format Document command within VSCode. For now I am using the method mentioned here to generate readable pkl files from json, but I would really like the option within VSCode.

Thanks for your work on Pkl so far!

stackoverflow commented 3 months ago

A formatter is definitely something we want in the language. It'll probably come either in the LSP or as a command in the CLI itself.

Redauser commented 2 weeks ago

Coding without a proper formatter is extremely frustrating, there is definitely the need to add this functionality!