Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>vscode-rustfmtNew to Visual Studio Code? Get it now.

vscode-rustfmt

statiolake

|
39,095 installs
| (2) | Free
document formatter for single rust file
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-rustfmt README

Register rustfmt as a formatter for Rust code.

Currently VSCode has a great extension for Rust, vscode-rls. However that extension doesn't have support for single .rs file. Especially formatting action does not triggered when file saved. This extension solves that problem.

Features

  • Format when editing single .rs file

Requirements

You must have rustfmt in your PATH.

Extension Settings

There is no settings now.

Known Issues

No issues are known.

Release Notes

Version 0.1.2

Add --edition 2018 flag.

Version 0.1.1

Fix and issue related to not picking the local rustfmt.toml. (#2)

Version 0.1.0

(This version is lost)

Version 0.0.1

Initial release.

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft