[Rust plugin] Struct indentation does not work properly

When I define new struct, after writing the first field, the caret does not move to the next line with the same indentation

 

What I expect:

struct Foo

{

    bar: i32,

    |   

}

 

What Im getting:

struct Foo

{

    bar: i32,

|   

}

评论操作 固定链接

You can try enabling the (Settings/Preferences | Editor | Code Style | Language | Use tab character) checkbox. If the setting doesn't work for your file, try to reformat the code.

Pay by Plate Ma

As another option, you can move the caret using shortcuts (Ctrl/Cmd | Right/Left arrow).

0

请先登录再写评论。