Skip to content
🔌 VS Code plugin for stylefmt— Format your CSS using stylefmt.
TypeScript CSS
Branch: master
Clone or download
mrmlnc Merge pull request #137 from mrmlnc/OPENSOURCE-8_dev_friendly
OPENSOURCE-8: Add community profile
Latest commit 48fb1c4 Nov 25, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
.vscode
fixtures
src
typings chore(types): fix postcss-scss typings Oct 16, 2017
.editorconfig
.gitignore
.travis.yml Simplify Travis CI config May 1, 2017
.vscodeignore
CODE-OF-CONDUCT.md docs: Add Code of Conduct Nov 25, 2017
CONTRIBUTING.md
LICENSE Hello, TS, new VS Code API & Better error handling Oct 18, 2016
README.md
icon.png
package.json
tsconfig.json
tslint.json

README.md

vscode-stylefmt

stylefmt is a tool that automatically formats your stylesheets.

Donate

If you want to thank me, or promote your Issue.

Donate

Sorry, but I have work and support for plugins requires some time after work. I will be glad of your support and PR's.

Install

  • Press F1 and select Extensions: Install Extensions.
  • Search for and select stylefmt.

See the extension installation guide for details.

Usage

  • You can use global keyboard shortcut ALT+SHIFT+F or right-click context menu Format code.
  • Or press F1 and run the command named stylefmt: Format CSS.

Supported languages

  • CSS
  • PostCSS
  • Less
  • SCSS

Supported settings

configBasedir

  • Type: string
  • Default: null

Base working directory; useful for stylelint extends parameter.

config

  • Type: object || string
  • Default: null

Config object for stylelint or path to a stylelint config file.

Will automatically look for .stylelintrc and stylelint.config.js in workspace root, or a stylelint param in the package.json, if config is omitted.

Warning!

If you want to specify a file in the current directory, the path must begin with a ./ or ../ if relative to the current directory. Also you can use HOME directory as ~ symbol.

useStylelintConfigOverrides

  • Type: boolean
  • Default: false

Overrides rules using Stylelint plugin settings.

showErrorMessages

  • Type: boolean
  • Default: true

Show error messages or not. Will be automatically set to false if editor.formatOnSave is enabled.

Keyboard shortcuts

For changes keyboard shortcuts, create a new rule in File -> Preferences -> Keyboard Shortcuts:

{
  "key": "ctrl+shift+c",
  "command": "stylefmt.execute"
}

Custom configuration

Read about the stylelint rules and default rules in stylefmt repository.

Changelog

See the Releases section of our GitHub project for changelogs for each release version.

License

This software is released under the terms of the MIT license.

You can’t perform that action at this time.