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

Refactor your existing code - Visual Studio Tutorial

From the course: Visual Studio 2019 Essential Training

Start my 1-month free trial

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…

Contents