From the course: Visual Studio 2019 Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Use outliners and regions in your code

Use outliners and regions in your code - Visual Studio Tutorial

From the course: Visual Studio 2019 Essential Training

Start my 1-month free trial

Use outliners and regions in your code

- [Narrator] When you are faced with editing hundreds of lines of code, you need a way to hide the parts that are not important for your immediate task. Visual Studio provides code outlining and code regions for these scenarios. Code outlining is automatic in some of the language editors. It happens as soon as you open the file, so let's open this Book.cx file. Look along the left margin, and you'll see that there's a set of black lines next to the line numbers and a minus symbol inside a square box. Not that appeared after about one or two seconds. Let me show you again. Keep your eye over here on the margin. I'll close the file, and then double-click to reopen it. What's happening is the code editor is looking for certain constructs inside this file, and when it finds them, it puts the outlining glyph in the left margin. So what can I collapse? Well, I can collapse this using section at the top. I can collapse everything inside my name space or inside the class or inside some of the…

Contents