All Projects β†’ dmnsgn β†’ sublime-stylefmt

dmnsgn / sublime-stylefmt

Licence: ISC License
Sublime Text plugin for Stylefmt

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to sublime-stylefmt

Sublime-Pretty-Shell
🐚 Shell Script Formatter / Syntax Checker (Powered by shfmt)
Stars: ✭ 28 (-42.86%)
Mutual labels:  formatter, sublime-text-plugin
tox-ini-fmt
Formats your tox.ini files
Stars: ✭ 19 (-61.22%)
Mutual labels:  formatter
react-numeric
A react component for formatted number form fields
Stars: ✭ 30 (-38.78%)
Mutual labels:  formatter
react-put
A flexible formatter and i18n interface for React.
Stars: ✭ 23 (-53.06%)
Mutual labels:  formatter
yapf-online
google/yapf online demo
Stars: ✭ 23 (-53.06%)
Mutual labels:  formatter
unify
Modifies strings to all use the same quote where possible
Stars: ✭ 69 (+40.82%)
Mutual labels:  formatter
sublime-text
Subime Text 相关衄源攢集整理
Stars: ✭ 62 (+26.53%)
Mutual labels:  sublime-text-plugin
fmt
A code formatter for Racket
Stars: ✭ 44 (-10.2%)
Mutual labels:  formatter
teks
Easily get custom go template based outputs to your command-line tool. Like in docker/kubernetes
Stars: ✭ 41 (-16.33%)
Mutual labels:  formatter
vim-ormolu
Plugin for formatting Haskell source code
Stars: ✭ 35 (-28.57%)
Mutual labels:  formatter
lucene
Node.js lib to transform: lucene query β†’ syntax tree β†’ lucene query
Stars: ✭ 61 (+24.49%)
Mutual labels:  formatter
canonix
Experiment in Nix formatting
Stars: ✭ 18 (-63.27%)
Mutual labels:  formatter
prettier-eslint-atom
DEPRECATED IN FAVOR OF prettier-atom + ESLint integration
Stars: ✭ 64 (+30.61%)
Mutual labels:  formatter
lancer
Turn your python code into a hideous mess. Ever heard of Black? This is the opposite.
Stars: ✭ 179 (+265.31%)
Mutual labels:  formatter
StyLua
An opinionated Lua code formatter
Stars: ✭ 479 (+877.55%)
Mutual labels:  formatter
formatters
A javascript library for formatting and manipulating.
Stars: ✭ 14 (-71.43%)
Mutual labels:  formatter
intl-format
A wrapper library for PHP to format and internationalize values in messages like sprintf
Stars: ✭ 12 (-75.51%)
Mutual labels:  formatter
pretty print formatter
Pretty Print Formatter for Elixir Logger module -- Colorize Ecto's SQL ouput πŸ–ŒοΈ
Stars: ✭ 22 (-55.1%)
Mutual labels:  formatter
haxe-formatter
Haxe code formatter based on tokentree
Stars: ✭ 58 (+18.37%)
Mutual labels:  formatter
autocorrect
Automatically add whitespace between Chinese and half-width characters (alphabetical letters, numerical digits and symbols).
Stars: ✭ 18 (-63.27%)
Mutual labels:  formatter

sublime-stylefmt

Sublime Text plugin for Stylefmt

Install

Package Control

Install Stylefmt with Package Control and restart Sublime.

You need to have Node.js installed.
Make sure it's in your $PATH by running node -v in your command-line.

Note: On OS X it's expected that Node resides in the /usr/local/bin/ folder, which it does when installed with the default installer. If this is not the case, symlink your Node binary to this location:
ln -s /full/path/to/your/node /usr/local/bin/node

Add Repository

  1. Open the Command Palette (Windows and Linux: ctrl+shift+p, OSX: cmd+shift+p)

  2. Select Package Control > Add Repository

  3. Paste in https://github.com/dmnsgn/sublime-stylefmt

Usage

Command Palette

Use the Command Pallete (Windows and Linux: ctrl+shift+p, OSX: cmd+shift+p) and run:

Run Stylefmt

Options

(Preferences > Package Settings > Stylefmt > Settings - User)

The format on save functionality can be extended to be applied on specific syntaxes or extensions.

{
  "formatOnSave": false,
  "syntaxes": ["SCSS"],
  "extensions": [".scss"]
}

Project settings

You can override the default and user settings for individual projects. Just add an "Stylefmt" object to the "settings" object in the project's .sublime-project file containing your project specific settings.

Example:

{
	"settings": {
		"Stylefmt": {
			"formatOnSave": false,
			"syntaxes": ["SCSS"],
			"extensions": [".scss"]
		}
	}
}

Keyboard shortcut

You can also set up a keyboard shortcut to run the command by opening up Preferences > Key Bindings - User and adding your shortcut with the stylefmt command.

Example:

[
	{ "keys": ["alt+super+f"], "command": "stylefmt" }
]

License

Based on FixMyJS plugin by Addy Osmani.

ISC Β© Damien Seguin

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].