Questions tagged [vetur]

114 questions
32
votes
16 answers

How to prevent VS Code from breaking up long HTML lines into multiple lines?

When my elements with attributes get long, VS Code seems to break the line up into multiple lines: (I would like three lines here instead of seven, one line per element) I am using prettier for formatting, and have set the printWidth option which…
Farsen
  • 1,387
  • 3
  • 21
  • 48
28
votes
3 answers

How disable eslint warning for a specific line in a template in a .vue file in VS Code

I would like to dismiss this error on my vue file I am trying to add this processor line and but neither Nor dismiss…
Daniel Santos
  • 14,328
  • 21
  • 91
  • 174
18
votes
1 answer

How enable Typescript typing and intellisense for vue props in template in VS Code?

I'm working with Vue and VS Code with vetur extension installed. I've defined a MyClass class with two public attributes. Inside the "script" section i'm able to get proper intelisense for the value property. But I cannot check intellisense nor…
Daniel Santos
  • 14,328
  • 21
  • 91
  • 174
17
votes
3 answers

Vue.js VSCode Vetur Emmet and Scaffold Snippets not recognized

I am using Vue.js on VSCode, and I installed Vetur for formatting. According to this video, there should be Scaffold snippets and Emmett code completion. None of that shows up on VSCode. When I type "scaffold" into a .vue file, there's no…
Andrea
  • 299
  • 1
  • 3
  • 6
14
votes
4 answers

How to fix "Property XX does not exist on type 'CombinedVueInstance" errors in VSCode? (Vue with Typescript)

VS Code is reporting a lot of problems/red lines when editing my Vue Typescript files: Example error: [ts] Property 'isLoading' does not exist on type 'CombinedVueInstance object, object, Readonly>>'. [2339] The…
14
votes
1 answer

Intellisense not working for .vue files

I am working with Vue and Typescript in Visual Studio Code and the Vetur extension. The problem: when I update any code, intellisense won't recognise the changes when working in a .vue file. In .ts files, intellisense IS working! I use this…
Kokodoko
  • 26,167
  • 33
  • 120
  • 197
13
votes
1 answer

How to avoid "Component is declared but its value is never read." when I use Vue3 setup syntax?