S
S
Sector5672020-03-17 14:36:16
css
Sector567, 2020-03-17 14:36:16

How to autocomplete html/css tags/selectors in .vue files for VSCODE editor?

There is a visual studio code editor, but if I write html tags or css selectors in files with the .vue extension,
then there is no auto-completion. You have to write each character to the end.
At the same time, there is no such problem in files with .html and .css extensions.
Maybe there are some modules for this or in the settings you can somehow change so that, for example, rules that
work in .html and .css formats also work for .vue formats

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
LukaMoria, 2020-03-17
@Sector567

If you are interested in emmet, then you need to add lines in settings vs code.
"emmet.includeLanguages": {
"javascript": "javascriptreact",
"vue-html": "html",
"razor": "html",
"plaintext": "pug"
}

A
Arseny, 2020-03-17
Matytsyn @ArsenyMatytsyn

Yes, look at the extension in the store (in general, VSCode itself should have offered you). True, emmet (this is what you called autocompletion) works there too so-so. If the comfort of editing is more important to you than everything in one file, then read the documentation, it can be divided into parts, which can then be imported into a component.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question