Skip to content

Automatically dedent right paren/right bracket #93

Open
@vosen

Description

@vosen

We now have a simple smart indent implementation in VisualSRustSmartIndent.cs.
This is good, but slightly annoying when it comes to right paren/right bracket insertions
For example, without auto dedention:

fn foo() {
····bar();
····baz();

now inserting } at the end of the file leads to

fn foo() {
····bar();
····baz();
····}

Auto dedention should correct it to

fn foo() {
····bar();
····baz();
}

Note, that autodedention should know know the difference between } and ) and auto-dedent to the "level" of the right token.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions