RustFormat
Rust formatting for Sublime Text
Details
Installs
- Total 6K
- Win 2K
- Mac 2K
- Linux 2K
Jan 30 | Jan 29 | Jan 28 | Jan 27 | Jan 26 | Jan 25 | Jan 24 | Jan 23 | Jan 22 | Jan 21 | Jan 20 | Jan 19 | Jan 18 | Jan 17 | Jan 16 | Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | Jan 7 | Jan 6 | Jan 5 | Jan 4 | Jan 3 | Jan 2 | Jan 1 | Dec 31 | Dec 30 | Dec 29 | Dec 28 | Dec 27 | Dec 26 | Dec 25 | Dec 24 | Dec 23 | Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
Mac | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 |
Linux | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 | 3 | 0 | 2 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
RustFormat
A simple plugin to format Rust code.
Prerequisites
This package relies on the amazing rustfmt to format Rust source code files.
Install with Cargo using cargo install rustfmt
or via instructions on the website.
Installation
Package Control
- Install Package Control
- Run
Package Control: Install Package
in the Command Palette (Super+Shift+P) - Install
RustFormat
Manual
- Navigate to the Sublime Text package directory
Clone the repository
$ git clone https://github.com/Rypac/sublime-rust-format.git RustFormat
Commands
RustFormat: Format Selection
- Format the current selection
RustFormat: Format File
(Ctrl+k, Ctrl+f)- Format the current file
RustFormat: Enable Format on Save
- Enable automatic formatting of Rust source files on save
RustFormat: Disable Format on Save
- Disable automatic formatting of Rust source files on save
Configuration
rust_format_on_save
- Automatically format files on save
rust_format_binary
- Full path to
rustfmt
binary (if not onPATH
)
- Full path to