Hi, I have a feature request related to intent,
I think Notepad++ and Visual Studio's indent after enter newline and press up works better and more intuitive, it'll remain the indent position, as in the gif:

But VSCode's indent after enter newline and press up go back to line start, which I think is not so reasonable:

Hope vscode can remain the indent position after enter newline and press up, thank you.
.
Reproduces without extensions: Yes
I desperately want this fixed. Reproduced on macOS with Code 1.24.1 as well.
This issue is extremely annoying. Version: 1.27.1 still have it.
1.28.2 here :(
I didn't had that problem until I formatted my PC, now I have that problem again.
I don't remember how I fixed that before...
Reproduced this with JavaScript code on 1.29.0 (Linux - KDE Neon)
As a partial workaround you can uncheck the setting "Editor: Trim Auto Whitespace". But it still leaves the problem after document being formatted.
Any updates on this issue?
Bumbing this one up as well.
It's been a few months now that about third of our team switched to VS Code for as3 and JavaScript coding, and this indent-ignoring in class level causes many false-positive conflicts and file change detections on our GIT, which is disturbing especially when merging... Thanks!
https://github.com/CodeCreator/vscode-indent-to-bracket This may serve as a work around IIUC.
@naresh0839 thanks for the link. This extension helps, but it doesn't take my indentation settings into account.
I have tabs set up in VS Code but it inserts spaces all over the place.
@rebornix was assigned to this well over 2 years ago. Why has there been no word from the team?
this is really annoying, there is any config to fix that? :(
@ramya-rao-a - Can you comment?
Go to File > Preferences > Settings.
Search for "Editor: Trim Auto Whitespace" and disable it. :)
@desromic well, I'd like to trim auto whitespace at the end of the line, so disabling this option is not suitable
I am using ubuntu and this issue is present in Visual Studio Code here too. I think i want it to be like CLion where indentation is always at the current indent level and not go into inline. Much useful. It must be fixed
Issue still there on Windows
Most helpful comment
As a partial workaround you can uncheck the setting "Editor: Trim Auto Whitespace". But it still leaves the problem after document being formatted.