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

editor.autoIndent:false is not honoured #36090

Closed
basilikum opened this issue Oct 11, 2017 · 6 comments
Closed

editor.autoIndent:false is not honoured #36090

basilikum opened this issue Oct 11, 2017 · 6 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug editor-autoindent Editor auto indentation issues verified Verification succeeded
Milestone

Comments

@basilikum
Copy link

basilikum commented Oct 11, 2017

The option editor.autoIndent seems to do exactly the opposite to what it is supposed to do. If it is set to true, then autoIndent is disabled, if it is set to false, then autoIndent is enabled.

I posted this question on Stackoverflow: https://stackoverflow.com/questions/46692283/prevent-vs-code-from-changing-indentation-on-enter

Steps to Reproduce:

  1. Set editor.autoIndent to false
  2. Follow instructions on Stackoverflow question
  3. Set editor.autoIndet to true
  4. Follow instructions on Stackoverflow once again
  5. Observe that the first time it causes an automatic indentation and the second time it doesn't

I am using Version 1.17.1 on macOS Sierra 10.12.6

Reproduces without extensions: Yes (all extensions were disabled)

@vscodebot vscodebot bot added the editor label Oct 11, 2017
@TheDutchCoder
Copy link

autoIndent doesn't do anything for me and indentation is completely broken since last version.

All kinds of weird offsets happening all over the place. Not even sure if there's a pattern to it.

@egamma egamma added the info-needed Issue requires more information from poster label Oct 12, 2017
@egamma egamma changed the title editor.autoIndent seems to be broken JS: editor.autoIndent seems to be broken Oct 16, 2017
@egamma
Copy link
Member

egamma commented Oct 16, 2017

The example on SO shows that this is a problem in JS.

@egamma egamma removed the info-needed Issue requires more information from poster label Oct 16, 2017
@alexdima alexdima added the bug Issue identified by VS Code Team member as probable bug label Oct 20, 2017
@alexdima alexdima added this to the October 2017 milestone Oct 20, 2017
@alexdima
Copy link
Member

I have fixed that setting autoIndent: false should not go and tweak indentation of the line on which Enter is pressed.

@basilikum
Copy link
Author

Great! Thank you! :D

@alexdima alexdima changed the title JS: editor.autoIndent seems to be broken editor.autoIndent:false is not honoured Oct 26, 2017
@alexdima alexdima added the editor-autoindent Editor auto indentation issues label Oct 26, 2017
@mjbvz mjbvz added the verified Verification succeeded label Nov 2, 2017
@Nodws
Copy link

Nodws commented Nov 8, 2017

Still not working in Ubuntu

@alexdima
Copy link
Member

@Nodws Please open a separate issue with precise steps.

@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 4, 2017
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 verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

7 participants