redhat-developer / redhat-developer/vscode-xml
Add preference to prefer self-closing tags when tab completing
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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