的Visual Studio 2013编译器警告不显示

编程入门 行业动态 更新时间:2024-10-27 16:31:12
本文介绍了的Visual Studio 2013编译器警告不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我安装了Visual Studio 2013,昨晚,我注意到,它没有显示在所有任何警告。具体而言,我希望它强调未使用的局部变量,私有方法等。有没有在Visual Studio中的某处设置,我需要启用?

I installed Visual Studio 2013 last night and I'm noticing that it's not showing any warnings at all. Specifically, I want it to highlight unused local variables, private methods and the like. Is there a setting somewhere in Visual Studio that I need to enable?

推荐答案

我跑进巧合的解决方案。 - 右键点击您的项目中选择属性。 - 转到左边的代码分析选项卡。 - 更改规则集的Microsft所有规则。 我有它在默认情况下,它甚至没有显示警告像未使用的局部变量直线前进的东西设为的Microsft管理的推荐规则。我选择了微软所有规则进行更细化的设置警告。

I ran into the solution by coincidence. - Right click on your project a select "Properties". - Go to the "Code Analysis" tab on the left. - Change the Rule Set to "Microsft All Rules". I had it set to "Microsft Managed Recommended Rules" by default, which did not even show warning for straight forward things like unused local variables. I selected "Microsoft All Rules" for a more granular set of warnings.

更多推荐

的Visual Studio 2013编译器警告不显示

本文发布于:2023-11-05 03:53:49,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1559820.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:编译器   Visual   Studio

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!