Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS 2013: curly braces size mismatch

I have got a problem with my 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?

The same size?

like image 854
GutierrezDev Avatar asked Feb 24 '15 23:02

GutierrezDev


People also ask

How do you match braces in Visual Studio?

I found this for you: Jump between braces in Visual Studio: Put your cursor before or after the brace (your choice) and then press CTRL + ] . It works with parentheses ( ), brackets [ ] and braces { }. From now on you don't need to play Where's Waldo? to find that brace.

How do I change the bracket style in Visual Studio?

I. Visual studio change curly brace style(highlight braces background) "Tools" menu → Options → Environment → Fonts and Colors → Select "Brace Matching or Brace Matching(Rectangle)" under "Display items" → select a "Background Color" → OK → Finish.


2 Answers

Well, after a while looking for a solution I found that the problem was an extension: 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.

like image 171
GutierrezDev Avatar answered Sep 19 '22 05:09

GutierrezDev


Also the same in VS 2019 with Productivity Power Tools.

Tools/Options/Productivity Power Tools: (Disable Syntactic Line Compression as below)

enter image description here

like image 27
Simon Avatar answered Sep 19 '22 05:09

Simon