Skip to content
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

Arrow up / arrow down / indents #35254

Closed
user3323 opened this issue Sep 27, 2017 · 3 comments
Closed

Arrow up / arrow down / indents #35254

user3323 opened this issue Sep 27, 2017 · 3 comments
Assignees
Labels
editor-commands Editor text manipulation commands editor-core Editor basic functionality under-discussion Issue is under discussion for relevance, priority, approach

Comments

@user3323
Copy link

  • VSCode Version: 1.17.0-ins
  • OS Version: win7x64

There is some function, and for in it, so when you do some Enter's to move down and then press "arrow up" or "arrow down" - your caret position will "fall through" all indents to the left, so user has to press Tab every time, to move the caret where it should be.

Annoying.

GIF:
auto-indent

@vscodebot vscodebot bot added editor editor-autoindent Editor auto indentation issues labels Sep 27, 2017
@Kuraperunat
Copy link

This is not just annoying, a fix for this is a prerequisite for some people including me to start using VSCode.

The problem is amplified when you have more indentations (especially in languages like C# with namespaces) cause you have to press tab multiple times to get to the current indentation. To be clear:

  • Moving the caret up/down with arrows should always stay on the current block indentation
  • Clicking an empty line should position caret to the selected block indentation
  • Pressing tab once should get to the current block indentation

For the love of god fix this, Visual Studio has had this right for ages.

@rebornix rebornix added bug Issue identified by VS Code Team member as probable bug editor-core Editor basic functionality under-discussion Issue is under discussion for relevance, priority, approach and removed editor-autoindent Editor auto indentation issues bug Issue identified by VS Code Team member as probable bug labels Nov 16, 2017
@felixfong227
Copy link

I found out that by disabling the Trim Auto Whitespace can sort of fix this issue🤔
image
Hope this is what you are looking for, at least I'm very happy with my end result🎉
ezgif-2-d6581aa66b23

@rebornix rebornix added the editor-commands Editor text manipulation commands label Oct 9, 2020
@alexdima
Copy link
Member

Let's track in #13960

@alexdima alexdima closed this as not planned Won't fix, can't repro, duplicate, stale Dec 10, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jan 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
editor-commands Editor text manipulation commands editor-core Editor basic functionality under-discussion Issue is under discussion for relevance, priority, approach
Projects
None yet
Development

No branches or pull requests

5 participants