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

Weird indenting placement #53776

Closed
jurrid opened this issue Jul 7, 2018 · 2 comments
Closed

Weird indenting placement #53776

jurrid opened this issue Jul 7, 2018 · 2 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug editor-autoindent Editor auto indentation issues wont-fix

Comments

@jurrid
Copy link

jurrid commented Jul 7, 2018

There is some strange tab of behaviour. I set the editor.detectIndentation to false and still it places the cursor 1 tab off but when i press the return key the placement is spot on. Does anyone have an idea whether this is my fault or a bug?

  • VSCode Version: 1.25.0
  • OS Version: 10.13.3 (17D47)

behaivor

@vscodebot
Copy link

vscodebot bot commented Jul 7, 2018

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@vscodebot vscodebot bot added the new release label Jul 7, 2018
@vscodebot vscodebot bot removed the new release label Jul 10, 2018
@rebornix rebornix added bug Issue identified by VS Code Team member as probable bug editor-autoindent Editor auto indentation issues labels Sep 4, 2018
@rebornix
Copy link
Member

rebornix commented Nov 3, 2020

This is due to the limited architecture (regex based indentation rules and only support limited code styles), we may want to consider using formatters if they exist for indenation adjustment (if interested, we can discuss in #19847).

For this particular issue, if the indentation rules are leading to more trouble than having no auto indent, you can set editor.autoIndent to advanced to disable the regex based indentation adjustment or use auto formatting (editor.formatOnType, editor.formatOnPaste). As we don't have an easy good-enough fix for it, we close it for now and explore better solutions through issues like (#19847 and #34621).

@rebornix rebornix closed this as completed Nov 3, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Dec 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug editor-autoindent Editor auto indentation issues wont-fix
Projects
None yet
Development

No branches or pull requests

2 participants