Rust Formatter
Format Rust code with standard indentation.
What it does
Formats Rust with standard indentation and spacing, close to what rustfmt produces. Useful for snippets and examples you want to share or paste into a project. The code means the same, it is only laid out consistently.
About the .rs format
.RS file extension.rs Sun raster bitmap image file
Raster Image Files
- File Type
- Sun raster bitmap image file
- Category
- Raster Image Files
The RS file extension is a file format that stores bitmap images and metadata.
Related tools
More in Code Formatters
XML Formatter
Indent XML, SVG and RSS and check that they are well formed.
HTML Beautifier
Indent HTML so the nesting of tags is easy to follow.
SQL Formatter
Break long SQL queries into lines and capitalise the keywords.
CSS Beautifier
Put each CSS rule and property on its own line with even indentation.
JavaScript Beautifier
Format minified or messy JavaScript with consistent indentation.
CSS Minifier
Remove comments and whitespace from CSS to make the file smaller.
JavaScript Minifier
Shrink JavaScript by removing comments, whitespace and line breaks.
HTML Minifier
Remove comments and extra whitespace from HTML.
Rust Formatter questions
How do I use the Rust Formatter?
Paste the text into the Input box or open a file, set the options, then copy or download the result.
Does renaming a file to .rs change its format?
No. The extension only tells programs what to expect, and the content of the file stays the same. To change the format, convert the file. The .rs page lists programs and converters for it.