From the course: Visual Studio Developer Tips

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Colored braces with the Viasfora extension

Colored braces with the Viasfora extension - Visual Studio Tutorial

From the course: Visual Studio Developer Tips

Colored braces with the Viasfora extension

- [Instructor] There are several extensions available in Visual Studio that help match code braces. In this tip, let's look at once that uses color pairing to help you determine which braces are matched. First, let's look at what is considered braces in C Sharp. I'll show you three examples. The first one is on line 12. There's the open and closed parenthesis. Those are braces. Next example is on line 19. Here, the open and closed square bracket. Those are braces. And then, of course, in C Sharp, there's the curly brace. In Visual Studio 2017, the IDE also draws a dotted line between curly braces, which is helpful for seeing code structure, but it doesn't provide any structure information for square brackets or parenthesis. There's another clue in Visual Studio for seeing brace matches. It's a subtle change, I'll show it to you on line 25. I put my cursor after the closing parenthesis, and if you look closely, you'll see that there is a light gray background behind that item. If you…

Contents