0

I'm going through <p> tags and selecting parts of the text which I want to put inside a <strong> tag. But for each one I have to type <strong>, then VSCode automatically puts the closing </strong> tag immediately after it. Is there a way to place the closing tag after selected content?

for example: <PTag> Press ( <strong>Right Arrow</strong> ) key to move to the next options for setting up Date </PTag>

  • Do you mean `

    ` tags and `` tags, or are the pipe characters on purpose?

    – AKX Jul 22 '22 at 11:56
  • Sorry, used pipe characters as using the <> in the text used them as their intended use. Will update and use them as you have. – James Ratcliffe Jul 22 '22 at 12:16
  • Does this answer your question? [How to do tag wrapping in VS code?](https://stackoverflow.com/questions/40155875/how-to-do-tag-wrapping-in-vs-code) – AKX Jul 22 '22 at 12:18
  • @AKX I might be wrong, but it seems to prevent me from using Emmet as I have prettier set as my defaultFormatter – James Ratcliffe Jul 22 '22 at 13:31
  • Emmet isn't a formatter, it's a shorthand syntax. – AKX Jul 22 '22 at 13:40

0 Answers0