GithubHelp home page GithubHelp logo

scotthovestadt / sassbeautify Goto Github PK

View Code? Open in Web Editor NEW

This project forked from badsyntax/sassbeautify

0.0 2.0 0.0 180 KB

A Sublime Text 2 plugin that beautifies Sass files. Depends on 'sass-convert' utility

Home Page: https://github.com/badsyntax/SassBeautify

Python 100.00%

sassbeautify's Introduction

SassBeautify

A Sublime Text 2 plugin that beautifies Sass files.

ScreenShot

Dependencies

You need to have the 'sass-convert' executable installed on your system to use this plugin. (If you have Sass installed on your system, then you should have sass-convert.)

Installation

Option 1 (recommended)

Install via package control:

  1. Ensure you have package control installed, see here: http://wbond.net/sublime_packages/package_control
  2. Install the package: open up the command palette (ctrl + shift + p), execute the following command: 'Package Control: Install Package', then enter 'SassBeautify'

Option 2

Manual download:

  1. Download the zip file file here: https://github.com/badsyntax/SassBeautify/archive/master.zip
  2. Unzip the archive, rename the 'SassBeautify-master' folder to 'SassBeautify' and move it into your Sublime Text 'Packages' directory.

Usage

Run the plugin from the command palette:

  1. Open the command palette (ctrl + shift + p)
  2. Enter 'SassBeautify'

Settings

Once installed, you can customize how the conversion works by changing the package settings.

  1. Open the default settings from the preferences menu: Preferences >> Package Settings >> SassBeautify >> Settings - Default
  2. Copy the settings and paste them into your user settings file: Preferences >> Package Settings >> SassBeautify >> Settings - User
  3. Change the settings!

Settings overview

The following settings can be adjusted:

{
  "indent": 4,        // How many spaces to use for each level of indentation. "t" means use hard tabs.
  "dasherize": false, // Convert underscores to dashes
  "old": false        // Output the old-style ":prop val" property syntax. Only meaningful when generating Sass.
}

Issues

This plugin should work on Linux (tested on Ubuntu), Windows (tested on Windows 7) and OSX (tested on 10.5.7). Please create an issue if you find it doesn't work as expected on your setup.

License

Licensed under the MIT license. Created by Richard Willis

sassbeautify's People

Contributors

badsyntax avatar scotthovestadt avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.