![]() ![]() Prettier Rust is essentially a 1:1 adaptation of Prettier Typescript, hence the opinions it implements have been battle tested and agreed-upon by millions and millions of users already. What is Prettier An opinionated code formatter Supports many languages Integrates with most editors Has few options. Rest assured, Prettier Rust actually does not take style decisions on its own. ![]() But it's brand new! How reliable are those opinions? Moreover, it doesn't reorganize imports, split comments or combine attributes. It won't change the syntax of valid rust code. Otherwise if your codebase compiles, then Prettier Rust is just a formatter like any other. "semicolon missing here", "parenthesize this" or "add a block around that") You can effectively think of Prettier Rust syntax autocorrection as auto-applying the Rust compiler's suggested syntax fixes automatically (e.g. The Prettier Rust syntax autocorrection feature is intended to be an adaptation of how Prettier Typescript autocorrects javascript code with missing semicolons.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |