intellij-rust/intellij-rust

feature request: use { auto add closing bracket

开放

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

 (6 条评论) (0 个反应) (0 位负责人)Kotlin (376 个派生)batch import
featurehelp wantedsubsystem::code insight

仓库指标

星标
 (4,526 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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.

贡献者指南