redhat-developer / redhat-developer/vscode-xml

Add preference to prefer self-closing tags when tab completing

Open
#385 13 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

When tab-completing a new tag, say Thing, it is accompanied by a closing tag like so:

<Thing></Thing>

I work on a project that uses XML files with lots of parameters specified in self-closing tags like so:

<Thing param1="foo" param2="bar" />

it would be helpful if there was a setting to prefer self-closing tags over a separate closing tag or a separate key stroke to insert one or the other (e.g. shift+tab for self-closing).

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 locating the VS Code XML extension's tab-completion path and checking how existing user preferences are defined. Implement a preference or alternate keystroke for choosing self-closing tags, and verify that tab completion produces the requested XML form without regressing separate closing tags.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
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.