Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

HTML Wrap selection with tags and adding class adds it to both tags #3

Open
aeschli opened this issue Apr 21, 2016 · 4 comments
Open
Labels

Comments

@aeschli
Copy link

aeschli commented Apr 21, 2016

From @mizujin on April 21, 2016 13:35

  • VSCode Version: 0.10.11
  • OS Version: Windows 8

Steps to Reproduce:

  1. In an HTML document, make a text selection to wrap and using Alt + W to wrap them with tags
  2. Define the tags and immediately continue with a class statement.
  3. class="" is added to both starting/ending tags.

Copied from original issue: microsoft/vscode#5607

@bgashler1
Copy link
Contributor

@aeschli and @bpasero, long time no talk! Hope you are all doing well. I'm working on updating this extension to address some user requests, including this one. Is there a way to address this issue with the current extension API? I don't know how to listen for a whitespace character to turn off the second cursor. I know that the Vim extension can listen for certain keyboard input to change modes, but I heard from Ben a while ago that this wasn't an ideal approach for my extension. Would love your 2 cents on how to address this. Thanks!

@aeschli aeschli removed their assignment Oct 2, 2017
@aeschli
Copy link
Author

aeschli commented Oct 2, 2017

Hi @brad! Great to hear from you!
If I understand right, you want to enter template mode, with one or more cursor positions. Check out the TextEditor.insertSnippet API.

@brad
Copy link

brad commented Oct 2, 2017

Hi @aeschli, I think you mean @bgashler1 😄

@bgashler1
Copy link
Contributor

This issue was moved to bgashler1/vscode-htmltagwrap#8

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants