ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Beautify​Rust

by vincenting ST3

A binding for Sublime Text 3 to Rustfmt

Labels formatting, rust

Details

Installs

  • Total 3K
  • Win 1K
  • OS X 943
  • Linux 1K
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 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4
Windows 2 2 1 1 1 0 1 1 2 2 0 0 0 1 3 1 1 2 0 1 2 0 1 6 1 1 1 2 1 2 1 7 1 2 0 1 3 1 1 3 2 1 0 1 0 3
OS X 2 4 1 0 0 1 0 1 0 0 0 1 1 1 0 1 0 0 2 3 0 2 0 2 2 1 0 1 2 0 1 2 0 0 0 0 0 1 1 2 0 2 2 0 0 1
Linux 1 4 1 0 1 1 0 1 1 2 1 0 0 0 3 0 1 0 1 0 3 0 2 1 1 1 2 1 0 0 1 0 0 0 1 3 3 1 0 0 0 0 0 0 1 0

Readme

Source
raw.​githubusercontent.​com

BeautifyRust

A binding for Sublime Text to the Rustfmt.

Requirements

  1. Clone and build the rustfmt
  2. Install the package through package control (or clone from git if you prefer): https://sublime.wbond.net/packages/BeautifyRust
  3. If an error is encountered while processing the file or can not find rustfmt in path, following message Beautify rust: can not find rustfmt in path. is displayed. Open menu in your Preferences -> Package settings -> BeautifyRust -> Settings - User, and edit the settings file using below as a template:
{
  "run_on_save": false,
  "show_errors": true,
  "rustfmt": "/Users/user/.cargo/bin/rustfmt"

  // Optionally, you may specify an array of arguments to pass to rustfmt
  // For example, if you have a system wide rustfmt configuration file
  // "args": [
  //     "--config-path=/Users/user/.rust/"
  // ]
}

Contact

https://github.com/vincenting/BeautifyRust