Visual Studio的:如何在默认情况下显式类型 [英] Visual Studio: How to have explicit type by default

查看:184
本文介绍了Visual Studio的:如何在默认情况下显式类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的Visual Studio(2013年)和ReSharper的(V9),目前在默认情况下,当创建一个新的变量,我们总是先有提案 VAR 。我们是这个样 VAR的过敏(这是我们的意见,我可以接受,其他不具备相同的,但是这不是重点)。我们可以用键盘的箭头选择明确的类型,但我们希望默认拥有它。

We have Visual studio(2013) and resharper(V9), and currently by default, when create a new variable, we always have the first proposal as var. We are kind of allergic of this var(this is our opinion,I can accept that other doesn't have the same, but that's not the point). We can select with the keyboard arrows the explicit type, but we would like have it by default.

我不知道如果默认来自ReSharper的或从Visual Studio ,但没有人有一个想法如何有明确的执行,而不是VAR?

I'm not sure if that default comes from Resharper or from Visual Studio, but does anyone has an idea how to have the explicit implementation instead of the var?

这是不是我们可以直接为整个团队做什么?

Is this something we can do directly for the whole team?

推荐答案

R·选项 - >代码编辑 - > C# - >代码样式 - >在声明中无功的用法

R# Options -> Code Editing -> C# -> Code Style -> 'var' usage in declarations

这篇关于Visual Studio的:如何在默认情况下显式类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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