vscode-auto-close-tag icon indicating copy to clipboard operation
vscode-auto-close-tag copied to clipboard

Don't auto close tag if cursor doesn't have whitespace following

Open imliam opened this issue 5 years ago • 0 comments

Assuming | is the cursor, if I try to open a paragraph tag by typing <p> at the beginning of the following line:

|Lorem ipsum dolor sit amet

I will end up with this:

<p>|</p>Lorem ipsum dolor sit amet

This is not what I want to happen, and it is a frequent occurrence that I end up with something like this when editing HTML. Ideally, if the cursor has no whitespace following it, there would be two options.

  1. Don't add an ending tag
Lorem<p>| ipsum dolor sit amet
  1. If the cursor was originally at the beginning of the line, add an ending tag at the end of the line
<p>|Lorem ipsum dolor sit amet</p>

imliam avatar Jul 02 '19 16:07 imliam