R
R
rgggwwg2020-10-18 18:22:44
css
rgggwwg, 2020-10-18 18:22:44

VSCode - Auto Generate Open and Close Brackets in CSS?

In Visual Studio Code, is there a way in a CSS or SCSS file to automatically generate open and close brackets after any class/id/selector? Are there such extensions?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Morev, 2020-10-18
@rgggwwg

If necessary, such an optimization is unlikely, it is too narrow a task. It's not impossible, just why?
If you need to automatically make s?css from HTML markup, then there is eCSStractor
for this. If you are too lazy to write a control structure for CSS on your own, then you can reduce it to one character using snippets. Here is my question with my own answer , I still do it, my brother is alive.

N
Nikita Mikhailov, 2020-10-18
@Psixodelik

After you write the selector and put a curly brace, the editor automatically closes it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question