How to use the HTML code completion feature in a. vue file when using Vscode

Source: Internet
Author: User

first, in the vscode to download the plugin and enable, and then flip through the plugin's readme, we can see the FAQ:

Ii. configuring Files.associations objects in Settings.json

First, open files--preferences--settings, and you'll see the Settings.json file

Then find the Files.associations object in "Common settings" in Settings.json.

Then slide the mouse to the left of the object, will appear an "edit" the logo, click on it, will open the right edit page,

Follow the steps to configure it, and then go back to the. Vue page, hit the Div, and then press the TAB key, you can automatically complete the code, here only to write the last word on it.

Can see also appear the code hint function, you can choose one oneself want, also can not choose, press TAB key directly, can generate <p></p>, for example:

How to use the HTML code completion feature in a. vue file when using Vscode

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.