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 - Visual Studio Tutorial
From the course: Visual Studio 2019 Essential Training
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
Explore the code editor windows4m 27s
-
(Locked)
How the proper editor window is loaded4m 26s
-
(Locked)
Write example code6m 37s
-
(Locked)
Use outliners and regions in your code4m 52s
-
(Locked)
Use hover tips3m 27s
-
(Locked)
Quick actions5m 29s
-
Use IntelliSense effectively5m 34s
-
(Locked)
Change tracking for code edits2m 37s
-
(Locked)
Refactor your existing code5m 3s
-
(Locked)
Code snippets5m 7s
-
-
-
-
-