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.
Refactor your existing code - Visual Studio Tutorial
From the course: Visual Studio 2019 Essential Training
Refactor your existing code
- [Instructor] Running code is a constant push and pull on your development skills. First, you write some code and test it to see if it works the way you intended. Then as the project progresses, you discover ways to improve and change the code. This kind of rewriting is sometimes called refactoring. Regardless of how you define it, Visual Studio has refactoring tools to help you automate the process. In Visual Studio, the refactoring tools are found in two places. The traditional location is in the Edit, Refactor menu. In more recent versions of Visual Studio, some of the refactorings appear in the quick actions. So if I go to this line of code here, you'll see the light bulb appear over there, that's the quick actions, and I can open this and apply refactorings from here. We'll look at both in this video. I need to arrange my screen. I'd like to have this Paint.cs file in a separate tab group and then I will hide the Solution Explorer by going full screen. Let's examine the code…
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
-
-
-
-
-