intellij-rust/intellij-rust

feature request: use { auto add closing bracket

Open

#4,394 创建于 2019年9月16日

在 GitHub 查看
 (6 评论) (0 反应) (0 负责人)Kotlin (4,526 star) (376 fork)batch import
featurehelp wantedsubsystem::code insight

描述

use std::collections::HashMap;
                      ^---- if I add a '{' here it would be great if
                            you added a closing '}' before the semicolon. 

I can't personally think of a situation where I wouldn't want that.

Quite often we go from one import to two, and at that point we have to introduce the braces. You could even add a ', ' and put the carrot before the closing brace, but I think that might be a little disconcerting.

Also the corollary,

use std::collections::{HashMap};
                      ^ if this '{' is deleted then it would be great to auto remove the closing brace.

贡献者指南