Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode does not show HTML attributes in .vue files but shows in html files

I have spent 3 hours figuring out what's going on but could not find it out. I am new to HTML and intellisense help me know many attributes of a tag on the go. However, with .vue files html attributes are not being shown up.

a) Attributes being shown up in "index.html"

enter image description here

b) No attributes hints in "TodoItem.vue"

enter image description here

I have already installed Vetur, HTML CSS Support and Vue VSCode Snippets extension from marketplace.

like image 905
ivorynoise Avatar asked Oct 15 '22 04:10

ivorynoise


1 Answers

First, install Vetur extension after that go to

File > Preferences > Settings

In the list find and open Extensions find Vetur, scroll down and find Template Interpolation Service (must be checked).

enter image description here

enter image description here

like image 78
Miloš Pantelinac Avatar answered Dec 27 '22 10:12

Miloš Pantelinac