question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

indent back to line start after enter newline and press up

See original GitHub issue
  • VSCode Version: Code 1.18.1 (929bacba01ef658b873545e26034d1a8067445e9, 2017-11-16T18:32:36.026Z)
  • OS Version: Windows_NT ia32 10.0.16299

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: vsindent gif

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

Hope vscode can remain the indent position after enter newline and press up, thank you.

.

Reproduces without extensions: Yes

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:38
  • Comments:22

github_iconTop GitHub Comments

17reactions
shakir-timurcommented, Nov 22, 2018

As a partial workaround you can uncheck the setting “Editor: Trim Auto Whitespace”. But it still leaves the problem after document being formatted.

7reactions
AdriaandeJonghcommented, Jun 25, 2018

I desperately want this fixed. Reproduced on macOS with Code 1.24.1 as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Indent the second line in Word - Microsoft Support
When you press the Enter key, it starts a new paragraph, and the indent style over again. If you need to start another...
Read more >
Auto-indent after pressing `Enter` between tags - Stack Overflow
I am using Visual Studio Code. By pressing Enter and Ctrl + Shift + Enter . I can make the auto indent in...
Read more >
How can I automatically indent on new lines?
The autoindent option will copy your current indentation when creating a new line. So if your current indentation level is 4 when you...
Read more >
Enter creates indented new line
When hitting `Enter` in IntelliJ I get a new line that's indented with ... to start from the beginning of the line each...
Read more >
Extra Indent Spacing After Newline C++ Editor
After I press backspace, it goes back to the 3 space indent but its a pain to have to do that. I also...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found