Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sibiraj-s/vscode-scss-formatter
A Visual Studio Code Extension to format SCSS files
https://github.com/sibiraj-s/vscode-scss-formatter
prettier scss-beautifier scss-formatter vscode-extension
Last synced: 22 days ago
JSON representation
A Visual Studio Code Extension to format SCSS files
- Host: GitHub
- URL: https://github.com/sibiraj-s/vscode-scss-formatter
- Owner: sibiraj-s
- License: mit
- Created: 2018-11-22T15:41:19.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-11T10:08:18.000Z (2 months ago)
- Last Synced: 2024-10-19T19:55:04.840Z (24 days ago)
- Topics: prettier, scss-beautifier, scss-formatter, vscode-extension
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=sibiraj-s.vscode-scss-formatter
- Size: 3.11 MB
- Stars: 9
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# VS Code SCSS Formatter
[![Tests](https://github.com/sibiraj-s/vscode-scss-formatter/workflows/Tests/badge.svg)](https://github.com/sibiraj-s/vscode-scss-formatter/actions)
[![Version](https://badgen.net/vs-marketplace/v/sibiraj-s.vscode-scss-formatter)](https://marketplace.visualstudio.com/items?itemName=sibiraj-s.vscode-scss-formatter)
[![Installs](https://badgen.net/vs-marketplace/i/sibiraj-s.vscode-scss-formatter)](https://marketplace.visualstudio.com/items?itemName=sibiraj-s.vscode-scss-formatter)
[![Downloads](https://badgen.net/vs-marketplace/d/sibiraj-s.vscode-scss-formatter)](https://marketplace.visualstudio.com/items?itemName=sibiraj-s.vscode-scss-formatter)
[![Ratings](https://badgen.net/vs-marketplace/rating/sibiraj-s.vscode-scss-formatter)](https://marketplace.visualstudio.com/items?itemName=sibiraj-s.vscode-scss-formatter&ssr=false#review-details)SCSS Formatter is an extension for Visual Studio Code to format [SCSS](https://sass-lang.com/).
SCSS Formatter uses [Prettier] under the hood to format files. Though Prettier supports formatting various file types. This extension focuses only on `SCSS`. Additionally it supports `CSS`.
Checkout [prettier-vscode] for an extended language support
Any issues related to formatting, open an issue [here](https://github.com/prettier/prettier/issues)
## Installation
Refer to [Visual Studio MarketPlace](https://marketplace.visualstudio.com/items?itemName=sibiraj-s.vscode-scss-formatter) to install or download the extension
To install via [command line](https://code.visualstudio.com/docs/editor/command-line), you should have installed `code` command in `PATH`
```bash
code --install-extension sibiraj-s.vscode-scss-formatter
```## Usage
Files can be formatted by the **Format Document** option available in the **context menu**, by using the associated **Keyboard Shortcut** or running the **Format Document** command from the **command pallete**
Default keyboard shortcuts for **Format Document** command:
- MacOS: **⇧⌥F** or **Shift+Option+F**
- Linux: **Ctrl+Shift+I**
- Windows: **Shift+Alt+F**### Formatter Demo
![SCSS Formatter Demo](assets/scss-format.gif)
### Extension Settings
This extension contributes the following settings:
- `scssFormatter.printWidth`: Line length that the formatter will wrap on.
- `scssFormatter.singleQuote`: Use single quotes instead of double quotes.
- `scssFormatter.trailingComma`: Print trailing commas wherever possible when multi-line.### Known Issues
- `formatOnPaste` is not supported as [Prettier] does not support formatting a selection or range of text for css/scss.
[prettier]: https://github.com/prettier/prettier
[prettier-vscode]: https://github.com/prettier/prettier-vscode