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

Scalafmt

by fedragon ST3

Scala formatter for Sublime Text 3, powered by Scalafmt and Nailgun

Details

  • 3.0.0
  • github.​com
  • github.​com
  • 10 months ago
  • 51 minutes ago
  • 10 months ago

Installs

  • Total 921
  • Win 334
  • OS X 380
  • Linux 207
Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3
Windows 1 1 0 0 1 3 0 0 0 0 0 1 0 2 0 2 1 0 1 2 1 1 2 0 0 1 0 2 2 0 0 0 3 1 2 3 0 1 3 1 1 1 2 0 1
OS X 1 4 1 0 1 1 0 4 2 0 0 1 0 0 1 1 1 0 2 2 2 2 2 0 2 1 0 2 1 1 2 0 1 4 2 0 0 1 1 1 1 3 2 4 0
Linux 3 0 1 1 0 0 3 0 1 1 1 0 1 1 1 1 0 0 0 1 1 0 1 0 0 0 1 0 0 0 0 0 0 1 1 2 0 2 0 2 0 2 1 0 0

Readme

Source
raw.​githubusercontent.​com

Scalafmt for Sublime Text 3

Minimal Sublime Text 3 package to format Scala files, powered by Scalafmt and Nailgun.

Installation

Step 1: Install this package

… with Package Control

  • open the Command Palette
  • select Package Control: Install Package
  • select Scalafmt

… or manually

Clone this repository in ~/Library/Application Support/Sublime Text 3/Packages/.

Step 2: Install Scalafmt and Nailgun

Run provided setup.sh, that will install for you both Scalafmt and Nailgun according to recommended installation instructions.

Optional: Add keybinding

Open Preferences > Key Bindings and add:

{
  "keys": ["super+alt+l"],
  "command": "scalafmt_format_file",
}

changing keys to any sequence of keys you'd like.

Usage

Open a Scala file, then open the Command Palette and select Scalafmt: Format current file.

Customize format style

This package uses (and creates, if missing) ~/.scalafmt.conf: this file can be used to influence how scalafmt formats your code.

Caveats

Early stages of development, only tested on OSX El Capitan / macOS Sierra.