HTML in Visual Studio Code

Asked

Viewed 58 times

-2

Is there any shortcut/technique to place <p> and </p> in a Visual Studio Code line?

Just as Ctrl+ ; turns the line into a comment

2 answers

2

Just squeeze p + tab, this is standard VS Code, unless you have installed some extension that changed this default software behavior.

inserir a descrição da imagem aqui

0

If I understand correctly, you want to use a command that at each line it will insert a tag opening at the beginning of the paragraph and the tag closing at the end. I don’t know.

But imagining that you have a huge text with several paragraphs. You can manually do is, put each paragraph in a row, imagining that you have one (*) asterisk at the beginning of each line and one .(endpoint) at the end of the paragraph.

Example:

  • Paragraph 1.
  • Paragraph 2.
  • Paragraph 3.

You select the asterisk or endpoint and press Ctrl+D until you select all (in this case you have a default) so you replace asterisk with <p> and the end point by </p>

Browser other questions tagged

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