Transform css to stylus inside vscode, save the hassle of external websites
Transform css to stylus inside vscode, save the hassle of external websites.
Install this extension from the VSCode Marketplace
Convert CSS to Stylus
or Ctrl + Alt + c / ⌘ Command + Alt + c .Convert Stylus to Css
or Ctrl + Alt + Shift + c / ⌘ Command + Alt + Shift + c .Use the following to embed a shortcut in keybindings.json. Replace with your preferred key bindings.
{
"key": "ctrl+alt+c",
"command": "extension.css2stylus",
}
You can customize your shortcuts too under: File > Preferences > Keyboard Shortcuts. (Code > Preferences > Keyboard Shortcuts on macOS) Check key bindings docs.
Settings object with defaults.
{
"css2stylus": {
"tabs": false, // !editor.options.insertSpaces
"indent": 2,
"unprefix": false,
"keepColons": false,
"cssSyntax": false,
"separateRules": false,
"removeComments": false,
"createColorVariables": false
}
}
Feel free to submit pull request or suggestions here.