Recently, I upgraded idea to the 2018 version and needed to reconfigure the vue environment, so I casually sorted out the operation process.
Step 1: Install the vue plugin first:
file --> settings --> plugins, then don't need to enter anything, just click Browse repositories...
Install vue plugin
Immediately after entering "vue" in the upper left, click vue.js in the search results, and there will be a green install button on the right. After the installation is successful, restart idea, so that idea can recognize the .vue file.
Install vue plugin
Step 2: Set up the vue new file template.
file-->setting-->editor-->file and code templates, select Vue File, and then you can edit the default template content in the right box. After editing, click "ok".
Set up vue to create a new file
This way, you can create a .vue file through the new option.
Set up vue to create a new file
The above is all the content of this article. I hope it will be helpful to everyone's learning and I hope everyone will support Wulin.com more.