Skip to content

Support reindentselectedlines #392

@musjj

Description

@musjj

VSCodeVim/Vim#1017 (comment)

Indentation after both o (editor.action.insertLineAfter) and cc (editor.action.reindentselectedlines) is determined by the language support, but they're specified differently, so some language plugins support the former better than the latter. Maybe some supports the latter better than the former, but none that I've found.

I write C++ and python for my job and o works great while cc doesn't in both of these. Typescript and rust, however, both work as expected.

The issue can be reproduced with the Vim plugin by putting the cursor in an empty line like this:

{
█
}

Then pressing cc in normal mode. It should auto-indent, but it does nothing currently. o works perfectly, on the other hand.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions