-
Notifications
You must be signed in to change notification settings - Fork 28.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[0.10.8] Indentation adds a tab on the beginning #2845
Comments
//cc @bpasero @alexandrudima |
I'm seeing a potentially related issue with SQL files if I highlight some lines and try to indent them with tab. This one is strange because, in addition to killing all the text, Command + Z refuses to undo the action! If I manually indent the first line with 4 spaces and highlight the rest, hitting tab works as expected. |
Oh, good catch! |
+1, seeing this as well |
@alexandrudima This bug seems only related in a file with |
@alexandrudima I'm on OSX, vscode version 0.10.8. I just tried to make a gif screen grab of the behavior, and couldn't reproduce it every time though. It seems almost random, and during my attempts I also ran into some weird indentation bug where after I saved the file, and then indented, it indented in the middle of the string randomly. my user settings are:
|
Indeed after investigating #2829 I can confirm this is a dup. We detect an extra tab was typed after pressing Tab in the case that the files dirty count increases from 0 to 1 in one VS Code window. |
Steps to reproduce 100%:
"files.trimTrailingWhitespace": true
.js
fileHere two examples of what is happening:
The text was updated successfully, but these errors were encountered: