简体   繁体   中英

Emmet in VS Code not correctly converting HTML links

When I select a plain text link in a HTML file and convert it using Emmet in VS Code by typing "a," a preview is shown as below:

<a href="https://www.google.com">https://www.google.com</a>

However, when I click Enter, the link in the href attribute disappears to become:

<a href="">https://www.google.com</a>

How can I prevent this from happening? Thanks in advance.

使用 Emmet,您可以打印a:link或只是a:link[href="https://www.google.com"]{https://www.google.com} ,但是访问元素类型

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM