如何关闭ReSharper中的[ Use 'var' ]提示How to Disable C# “var” Recommendation in ReSharper
2012-02-15 21:26
561 查看
最近装上了ReSharper,确实是个很不错的工具,代码如果写得不规范他会提示,而且可以根据自己公司的需求自定义代码规范。
默认设置的提示已经相当完美,但美中不足就是老提示你用var来代替所有类型。个人实在是不喜欢var这个东西。
默认设置的提示已经相当完美,但美中不足就是老提示你用var来代替所有类型。个人实在是不喜欢var这个东西。
To disable these suggestions, do the following:
Go to the ReSharper menu and select Options…
From the resulting dialog box, select Code Inspection, Inspection Severity.
Select the C# tab and then Language Usage Opportunities.
Set both “Use ‘var’ keyword when initializer explicitly declares type” and “Use ‘var’ keyword when possible” to “Do not show”.
From the resulting dialog box, select Code Inspection, Inspection Severity.
Select the C# tab and then Language Usage Opportunities.
Set both “Use ‘var’ keyword when initializer explicitly declares type” and “Use ‘var’ keyword when possible” to “Do not show”.
相关文章推荐
- 关闭ReSharper中的[ Use 'var' ]提示(Disable C# “var” Recommendation in ReSharper)
- How to Insert OLE Object (Adobe Acrobat Document) in Word with C#(如何使用C#在Word中插入OLE对象-PDF文件)
- All-In-One Code Framework(AIO): 如何使用C#编写进程外的COM组件 (How to write an out-of-proc COM server in C#)
- mac如何关闭gradle的task,杀死gradle进程 how-to-stop-gradle-task-execution-in-Android-studio
- How to write a DCOM server in C# 如何用C#编写DCOM服务器
- How to write a DCOM server in C# 如何用C#编写DCOM服务器
- How to disable autosize function when insert a object into powerpoint(Powerpoint中插入对象时如何关闭自动调整尺寸和布局功能)
- How to create a File-Compare function in Visual C#
- HowTo use linux laptop in presentations 【如何在Linux系统上使用投影仪】
- [Ubuntu] 如何在VirtualBox OSE中使用share folders -- How to use the share folders in VirtualBox OSE
- Docker: How to enable/disable HTTP Proxy in Toolbox
- How to make Windows Form app truly Full Screen (and to hide Taskbar) in C#? 转
- How To Enable/Disable Archive Logging In RAC Environment for 10.2 and higher version
- 如何关闭Golang中的HTTP连接 How to Close Golang's HTTP connection
- How do I convert an enum to a list in C#?
- C#中如何获取其他进程的命令行参数 ( How to get other processes's command line argument )
- 【原创】如何在DataFormWebPart中嵌入自定义控件[How to embeded custom control in DFWP]
- 转:How to submit rows of a repeating table in InfoPath to a web service? 如何将重复表中的记录传给Web Service ?
- How to hijack domain name in windows - 如何实现 Windows 本地域名劫持
- In C# how to find the mime type of a file