简体   繁体   English

VS 2013:花括号大小不匹配

[英]VS 2013: curly braces size mismatch

I have got a problem with my Visual Studio 2013:我的 Visual Studio 2013 有问题:

My curly braces have different sizes.我的花括号有不同的尺寸。

If I write some code in the same line they change the size to match my editor font size.如果我在同一行中编写一些代码,它们会更改大小以匹配我的编辑器字体大小。

Is there a config section where I can disable this behavior?是否有可以禁用此行为的配置部分?

一样大吗?

Well, after a while looking for a solution I found that the problem was an extension: VS Productivity Power Tools 2013: Syntactic Line Compression.好吧,经过一段时间寻找解决方案后,我发现问题是一个扩展:VS Productivity Power Tools 2013:Syntactic Line Compression。

  1. Click "Tools" -> "Options"点击“工具”->“选项”
  2. Choose "Productivity Power Tools" in the Options window在选项窗口中选择“生产力电动工具”
  3. Toggle "Syntactic Line Compression" to "Off"将“句法行压缩”切换为“关闭”

Hope this helps.希望这可以帮助。 PS: This solution works with VS 2015 and VS 2017 too. PS:此解决方案也适用于 VS 2015 和 VS 2017。

Also the same in VS 2019 with Productivity Power Tools.在 VS 2019 中使用 Productivity Power Tools 也是如此。

Tools/Options/Productivity Power Tools: (Disable Syntactic Line Compression as below)工具/选项/生产力电动工具:(禁用语法线压缩如下)

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM