tabs to spaces
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
The editor is not following the generic setting which changes tabs to the equivalent spaces.
To Reproduce
Steps to reproduce the behavior:
- in insert mode
- hit tab
- hit escape
- see the little tab highlight flash.
- delete the newly inserted tab (x)
- see the line retreat the size of the tab.
Expected behavior
- in insert mode
- hit tab
- hit escape
- see the little tab highlight flash.
- delete the newly inserted tab (x)
- the line should retreat by one character.
Screenshots
If applicable, add screenshots to help explain your problem.
If remapping-related, please attach log output: https://github.com/VSCodeVim/Vim#debugging-remappings.
Environment (please complete the following information):
uname -a
Linux sjetx11 3.10.0-1160.62.1.el7.x86_64 #1 SMP Tue Apr 5 16:57:59 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
sorry, don't see the 'Command Palette'
vscode version information :
Commit: 5554b12acf27056905806867f251c859323ff7e9
Date: 2022-02-03T04:23:11.224Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Linux x64 3.10.0-1160.62.1.el7.x86_64
- Extension (VsCodeVim) version:
- VSCode version:
- OS:
Additional context
Add any other context about the problem here.
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 reproducing the issue in VSCodeVim on Linux: enable the generic setting that converts tabs to spaces, then follow the listed insert, escape, and delete steps. Compare the result with the expected behavior; done means deleting the inserted tab retreats the line by one character rather than the full tab width.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100