Prettier - Code formatter (Rust) installs statistics
By jinxdash · VS Code Marketplace · Formatters
Prettier Rust is a code formatter that autocorrects bad syntax
Prettier - Code formatter (Rust) has 135,559 recorded installs on VS Code Marketplace, an increase of 2.4% over the past 30 days, ranking #1993 of 2,515 tracked listings.
Rating: 4.33 / 5 from 6 ratings
About Prettier - Code formatter (Rust)
The massively popular Prettier code formatter, now with Rust support!
This extension is a standalone bundle of Prettier + Prettier Plugin Rust.
</div>Why Prettier?
<br>What usually happens once people start using Prettier is that they realize how much time and mental energy they actually spend formatting their code. No matter how incomplete or broken the code you're working on is, with the Prettier Editor Extension you can always just press the
Format Documentkey binding and *poof*, the code snaps right into place.
- Beautiful, uniform and consistent — Prettier is strongly opinionated, with no style options.
- There when you need it the most — Prettier can format code that won't compile (e.g. missing annotations)
- Speed up the day-to-day — Prettier auto-fixes common syntax errors (e.g. missing semicolons, blocks, parentheses)
const LEET = 1337
/// My WIP code draft
#![feature(crate_visibility_modifier)]
async crate fn foo(arg) {
arg.0 *= 3.14 + LEET & 1337
arg.1(|b, c| -> T &c).await
}
</td>
<td>
<!-- prettier-ignore -->
const LEET = 1337;
#![feature(crate_visibility_modifier)]
/// My WIP code draft
crate async fn foo(arg) {
arg.0 *= (3.14 + LEET) & 1337;
(arg.1)(|b, c| -> T { &c }).await
}
</td>
</tr>
</table>
<div align="center">
Formatting succeeds and fixes 7 syntax errors.
</div> <br>Configuration
https://prettier.io/docs/en/configuration
<!-- prettier-ignore -->// .prettierrc.json
{
"useTabs": false,
"tabWidth": 4,
"printWidth": 100,
"endOfLine": "lf",
// -- Not supported yet --
// "trailingComma": "es5",
// "embeddedLanguageFormatting": "auto",
// Example override
"overrides": { "files": ["tests/*.rs"], "options": { "printWidth": 80 } }
}
<details>
<summary>Alternative config using TOML</summary>
# .prettierrc.toml
useTabs = false
tabWidth = 4
printWidth = 100
endOfLine = "lf"
# -- Not supported yet --
# trailingComma = "es5"
# embeddedLanguageFormatting = "auto"
# Example override
overrides = [
{ files = ["tests/*.rs"], options = { printWidth = 80 } }
]
</details>
How to ignore things
- Add
// prettier-ignoreor#[rustfmt::skip]above it - Add
#![rustfmt::skip]inside blocks or files - Create a
.prettierignorefile to glob-match files, like.gitignore
How are macros formatted?
- Curlies
!{}format like blocks,![]and!()like comma-separated expressions - Formatting inside macro invocations is more conservative, since macros can be token-sensitive
- Popular/built-in macros with original syntax rules get custom formatting (e.g.
matches!,if_chains!...) [Not implemented yet] - Macro Declarations are only partially formatted (the transformed part isn't yet, but could be in the future)
- Macros that can't be formatted are silently ignored
Are nightly features supported?
Yes! Prettier Rust formats most nightly features. Support depends on jinx-rust.
Project integration
-
Command line
Requires NodeJS
-
Install
prettierandprettier-plugin-rustgloballynpm install --global prettier-plugin-rust prettier -
Use the prettier CLI to format rust files. E.g. run:
prettier --write **/*.rs
-
-
NodeJS package
Requires NodeJS
-
Install
prettierandprettier-plugin-rustin the projectnpm install --save-dev prettier-plugin-rust prettier -
Link to the plugin's location in your prettier config:
"plugins": ["./node_modules/prettier-plugin-rust"] -
Use the prettier CLI to format rust files. E.g. run:
npx prettier --write **/*.rs
-
-
Rust crate
No crate yet. Above options are available in the meantime.
Q&A
-
Why would I use this and not the established
cargo fmt?It's all about the Editor Integration — Having the ability to format your code while you work on it really makes for a great developer experience, and autocompletion for Rust's strict syntax is such a massive time save. Once you've tried the extension there really is no coming back.
All-in-all the difference in code style is minimal, so adopting Prettier Rust won't drastically change your codebase. The real downside is the harsher integration with the Rust ecosystem, but it'll get better eventually.
Point by point:…
Description from the VS Code Marketplace listing.
- formatter
- prettier
- rs
- rust
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Ratings over time
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Installs on a linear scale. Placement is projected from installs, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (50)Similar VS Code Marketplace Formatters plugins
All 20 Prettier - Code formatter (Rust) alternativesData source
Install counts, average rating, and rating counts come from the public Visual Studio Marketplace gallery API. Installs are cumulative and exclude updates.
Listing: https://marketplace.visualstudio.com/items?itemName=jinxdash.prettier-rust. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.