Skip to content

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

Closed

Description

@ice-blaze
  • 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

Activity

  1. changed the title [-]Move line alt+up/down should autoindent[/-] [+][Request] Move line alt+up/down should autoindent[/+] on Oct 25, 2016
  2. added
    feature-request
    on Oct 25, 2016
  3. philippelesaux commented on Feb 3, 2017

    @philippelesaux

    +1

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

  4. added
    editor-autoindent
    on Jun 7, 2017
  5. gavinr commented on Jun 8, 2017

    @gavinr

    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!

  6. rebornix commented on Jun 26, 2017

    @rebornix
    Contributor

    Already added this feature in Insider. Thanks!

  7. wprater commented on Jun 26, 2017

    @wprater
    Contributor

    Already added this feature in Insider. Thanks!

    Peng Lyu (@rebornix) which PR?

  8. gavinr commented on Jul 25, 2017

    @gavinr

    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?

  9. rebornix commented on Jul 25, 2017

    @rebornix
    Contributor

    Gavin Rehkemper (@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.

  10. gavinr commented on Jul 26, 2017

    @gavinr

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

  11. locked and limited conversation to collaborators on Nov 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

editor-autoindentfeature-requeston-testplan

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions