dfinity / prettier-plugin-motoko

A code formatter for the Motoko smart contract language.
Apache License 2.0
28 stars 1 forks source link

Indentation differs from style guide #57

Closed f0i closed 2 years ago

f0i commented 2 years ago

According to the style guide, code should be indented with 2 spaces, currently 4 spaces are used.

https://internetcomputer.org/docs/current/developer-docs/build/cdks/motoko-dfinity/style/#indentation

Each level of indentation should be 2 spaces.

rvanasa commented 2 years ago

The default is actually 2 spaces, but this is overridden by VS Code's formatting options. Thank you for pointing this out, since it's worth thinking more about how much we want to enforce the style guidelines over environment defaults.