-
Notifications
You must be signed in to change notification settings - Fork 30k
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
When pressing Tab on white-space only lines, indent straight to the right spot (similar to empty lines) #2938
Comments
[email protected]
|
@alexandrudima I do not use formatOnType. So workaround #1 fixed the weird combination tab and space indenting. The culprit could be However it did not fix the single space on a line bug where it indents to the first indent spot encountered. It may be useful to add that I am also using OSX El Capitan 10.11.3. |
@amamut Indeed, only empty lines get indented straight to the right place -- https://github.com/Microsoft/vscode/blob/master/src/vs/editor/common/controller/oneCursor.ts#L1284 I can enhance that logic to also do it for whitespace only lines. |
@alexandrudima I feel that would make the most sense. |
This is makes sense, but not critical enough for July. Moving to August. |
Depending on how my cursor arrives at line of code determines which way the editor indents the line. Let me start by showing what the correct indent spacing looks like:
It may be useful stating that this weird spacing is occurring while working with typescript. I am not sure if it occurs for any other languages. And please let me know if I am missing a configuration item.
Thanks!
The text was updated successfully, but these errors were encountered: