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 859
  • Linux 976
Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10
Windows 1 2 0 2 3 3 0 2 0 2 3 6 2 1 0 0 1 1 2 0 4 1 0 1 5 0 1 0 0 0 3 0 3 1 0 0 1 1 2 0 3 0 2 2 0 2
OS X 1 0 0 1 2 2 2 0 0 0 2 1 1 0 0 0 1 0 0 2 2 0 0 2 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 1 1 1 1 1 0 0
Linux 3 1 2 2 1 2 0 1 1 2 4 3 1 1 1 3 1 5 1 3 1 1 0 0 2 0 1 0 2 5 0 1 1 3 1 0 2 2 2 3 1 2 2 0 0 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