redhat-developer / redhat-developer/vscode-xml

Support multi-cursor auto close tag for elements for different names

Open
#495 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
328
Forks
101
Avg merge
1d 17h
Merged PRs (30d)
7

Description

See https://github.com/redhat-developer/vscode-xml/pull/490#issuecomment-852241173

If you have a document like this, with cursors at each | pipe:

<root>
  <aaa|
  <bbb|
  <ccc|
</root>

And then you perform auto-close by typing >, (assuming #490 is merged), it will give:

<root>
  <aaa></aaa>
  <bbb></aaa>
  <ccc></aaa>
</root>

It would be very cool if we instead did:

<root>
  <aaa></aaa>
  <bbb></bbb>
  <ccc></ccc>
</root>

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the auto-close behavior and discussion linked from pull request #490, then reproduce the multi-cursor example in a VS Code XML document. The change is complete when typing > creates a matching closing tag for each distinct element name, as shown in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.