ReSharper和自动关闭括号 [英] ReSharper and auto closing parentheses

查看:268
本文介绍了ReSharper和自动关闭括号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以避免关闭以下括号:

Is there a way to avoid closing the following parentheses:

String.Format( ) 还是Console.WriteLine( ) 自动?

String.Format(), or Console.WriteLine() automatically?

有时候这很烦人并且不必要,我最终按下Delete将其删除.

Sometimes is this is annoying and unnecessary, and I end up pressing Delete to remove it.

我尝试禁用Auto-insert pair brackets, pharentheses and quotesAuto-insert closing brace,它仍然无法正常工作...

I tried disabling Auto-insert pair brackets, pharentheses and quotes and Auto-insert closing brace and it is still not working...

推荐答案

如果您不希望括号中具有自动完成功能,则应在Resharper中取消选中/选中以下选项(所有选项都可以通过 Visual Studio访问) > ReSharper>选项...>环境)

The following options should be unchecked/checked in Resharper if you do not want autocomplete feature on parenthesis (all options can be accessed through Visual Studio > ReSharper > Options... > Environment)

要在非方法调用中禁用括号自动插入(如问题中所指出的,您已经将其禁用了)

To disable parenthesis auto insert in non method calls (as pointed out in the question, you have already disabled it)

  • 编辑器>自动插入对括号,方括号和引号(未选中)
  • 编辑器>自动插入右括号(未选中)

要在方法调用中禁用括号自动插入

  • Intellisense>完成行为> >完成后自动插入括号仅打开(启用)

  • Intellisense > Completion Behavior > Automatically insert parenthesis after completion > Opening only (enabled)

Visual Studio 2008ReSharper 6.0中进行了测试.

这篇关于ReSharper和自动关闭括号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆