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

[Request] Move line alt+up/down should autoindent #14390

Closed
ice-blaze opened this issue Oct 25, 2016 · 7 comments
Closed

[Request] Move line alt+up/down should autoindent #14390

ice-blaze opened this issue Oct 25, 2016 · 7 comments
Assignees
Labels
editor-autoindent Editor auto indentation issues feature-request Request for new features or functionality on-testplan
Milestone

Comments

@ice-blaze
Copy link

ice-blaze commented Oct 25, 2016

  • VSCode Version: 1.6.1
  • OS Version: Ubuntu 14.04

I think it would be nice if the moveline feature manage the indentation. For example:

hello = "hello"
for i in range(1,10):
    pass                    

Move hello variable down (current behaviour):

for i in range(1,10):
hello = "hello"
    pass

Expected behaviour:

for i in range(1,10):
    hello = "hello"
    pass
@ice-blaze ice-blaze changed the title Move line alt+up/down should autoindent [Request] Move line alt+up/down should autoindent Oct 25, 2016
@alexdima alexdima added editor feature-request Request for new features or functionality labels Oct 25, 2016
@alexdima alexdima added this to the Backlog milestone Oct 25, 2016
@alexdima alexdima removed their assignment Oct 25, 2016
@philippelesaux
Copy link

+1

Was hoping v1.9.0 would include this in their indentation update, but it doesn't look like it.

@rebornix rebornix added the editor-autoindent Editor auto indentation issues label Jun 7, 2017
@rebornix rebornix modified the milestones: June 2017, Backlog Jun 7, 2017
@gavinr
Copy link

gavinr commented Jun 8, 2017

This is a feature of atom.io that I really wish VS Code had! Glad to see this on the June 2017 milestone. Thanks team!

@rebornix
Copy link
Member

Already added this feature in Insider. Thanks!

@wprater
Copy link
Contributor

wprater commented Jun 26, 2017

Already added this feature in Insider. Thanks!

@rebornix which PR?

@gavinr
Copy link

gavinr commented Jul 25, 2017

Did this land in v1.14.2? I'm not seeing the expected behavior.

Edit: I see here that this feature should be in v1.14.2. It's not working for me in a TypeScript file. Should I open a separate issue? Is this working for others?

@rebornix
Copy link
Member

@gavinr right now we didn't turn it on by default on 1.14 yet, you can set editor.autoIndent to true in your settings file.

@gavinr
Copy link

gavinr commented Jul 26, 2017

@rebornix Thanks for that clarification. When I turn that setting to true, it works! Thanks!

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
editor-autoindent Editor auto indentation issues feature-request Request for new features or functionality on-testplan
Projects
None yet
Development

No branches or pull requests

7 participants