VSCode for designers
As a designer I often jump into vscode to work on designs, components and pages.
To help I've started configuring vscode to work for me, and maybe other designers too. Here are a few of my favourite extensions and how I use them.
Speeding up and checking classes
I've recently moved on from SCSS Everywhere to HTML CSS Support.
This extension makes it easier to use the classes you want to use. You can use your css classes and any css classes of stylesheets you include in your projects.
Set it up by telling it where to find the stylesheets. And, if you want to validate the classes on save of .html files add that option too. Validate just checks the classes you have used exist in your stylesheets somewhere.
For example, add the following to settings.json
{
"css.styleSheets": ["docs/static/**/*.css"],
"css.autoValidation": "Save",
}
You regularly get false warnings which is annoying.
To correct, hit shft + cmd + p to bring up command panel. Search or select CSS: Clear style sheet cache.
Edit HTML tags as one
I've installed Auto Rename Tag to make it easier to change html tags. You'll no longer need to change both the opening and closing tags separately. This extension does it for you.