Issue with jsx tags
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
Describe the bug
When I write jsx tag for instance Paragraph and press Tab vim switches to visual mode and shifts cursor on few symbols back.
But everything works fine with html tags and emmet.
To Reproduce
Steps to reproduce the behavior:
- Write Paragraph in any .js .tsx document
- Press Tab button
- Look on caret position and vim mode.
Expected behavior
Expect to see caret between opened and closed JSX tag and insert vim mode.
Screenshots

And if press 'c' in visual mode it switches to insert mode but also removes part of opened jsx tag.
https://www.screencast.com/t/6L57LL5foH
Environment:
- Extension (VsCodeVim) version: v1.18.5
- VSCode version: 1.52.1
- OS: Windows_NT x64 10.0.19041
Additional context
Also have same issue with snippets described here
https://github.com/VSCodeVim/Vim/issues/5463
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
Reproduce the issue in VSCodeVim with a .js or .tsx document, typing a JSX tag such as Paragraph and pressing Tab. Compare the JSX behavior with HTML and Emmet, and review issue 5463 for related snippet handling. Done means Tab leaves the caret between the JSX tags in insert mode without altering the tag.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100