yuce / erlang-vscode

Erlang/OTP support for Visual Studio Code
Other
19 stars 6 forks source link

Auto-format Code #3

Open dreambo8563 opened 8 years ago

dreambo8563 commented 8 years ago

I didn't find any command to make it auto indent to be a beautiful format..

please help, any shortcut will be great

yuce commented 8 years ago

When the line ends with -> or of the next line should be indented auto. Doesn't that work?

If you mean re-formatting the source, it is not supported yet.

dreambo8563 commented 8 years ago

yes, hope we can have re-formatting.

fireflyc commented 8 years ago

I added this feature

https://github.com/fireflyc/erlang-vscode/

dtip commented 4 years ago

You may also be interested in this extension to autoformat Erlang with VS Code: https://github.com/szTheory/vsc-erlang-formatter