Is there any way to let the vscode tags close as is the sublime?

Asked

Viewed 1,060 times

3

When you open a tag in the sublime as <div> write the content and then type "</" it automatically closes the tag that was opened, without having to type div.

You can do this on Vscode?

3 answers

2


Guy just set this option in the VS Code Setting.

In the bottom left corner, click on the Gear icon, open the Setting and search for "close tag" there is just mark and ready.

You will type div+tab and will automatically appear <div></div>

inserir a descrição da imagem aqui

In the latter case vc tb can install some exclusive extension for this, it will automatically close all your tags

inserir a descrição da imagem aqui

  • @Isac vdd was worth the touch already edited []’s

0

Hello,

There are some extensions that you can download to perform this task. The extension that I use is the HTML Snippets.

To download it, just click on the icon that looks like a block of tetris in your VS Code, and in the search bar type the name of the extension and select the correct one, which will appear in the list just below the search box. After that, click on install. Ready!

I hope it helped, if you have any questions, you can ask me. D

0

Speak and, John!

As I do a lot in Reactjs, I use a lot of tags in VSCODE, I have this config inside the file "Settings.json"

"emmet.includeLanguages": {
  "javascript": "javascriptreact"
},

for Bir you do like this: "Ctrl + P", type ">Settings" and click on "Preferences: Open Settings (JSON)".

I hope I’ve helped!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.