[Vuejs]-VSCode Yellow HTML in JS file

0πŸ‘

If you separate your code into components and install the following plugin It will give you IntelliSense and syntax highlighting for Vue.

See an example here –> https://codesandbox.io/s/o29j95wx9

Good example of it here from the Vue docs –> https://v2.vuejs.org/v2/guide/single-file-components.html

I think VS code has to see it separated out into blocks below for it to properly do syntax highlighting otherwise it’ll just detect what you have declared in the template as strings.

<template></template>

<script></script>

<style></style>

0πŸ‘

Install Vue Inline Template in vscode. here

Leave a comment