Book Image

Visual Studio 2019 Tricks and Techniques

By : Paul Schroeder, Aaron Cure
Book Image

Visual Studio 2019 Tricks and Techniques

By: Paul Schroeder, Aaron Cure

Overview of this book

Visual Studio 2019 (VS 2019) and Visual Studio Code (VS Code) are powerful professional development tools that help you to develop applications for any platform with ease. Whether you want to create web, mobile, or desktop applications, Microsoft Visual Studio is your one-stop solution. This book demonstrates some of the most sophisticated capabilities of the tooling and shows you how to use the integrated development environment (IDE) more efficiently to be more productive. You’ll begin by gradually building on concepts, starting with the basics. The introductory chapters cover shortcuts, snippets, and numerous optimization tricks, along with debugging techniques, source control integration, and other important IDE features that will help you make your time more productive. With that groundwork in place, more advanced concepts such as the inner workings of project and item templates are covered. You will also learn how to write quality, secure code more efficiently as well as discover how certain Visual Studio features work 'under the hood'. By the end of this Visual Studio book, you’ll have learned how to write more secure code faster than ever using your knowledge of the extensions and processes that make developing successful solutions more enjoyable and repeatable.
Table of Contents (21 chapters)
1
Section 1: Visual Studio IDE Productivity Essentials
9
Section 2: Customizing Project Templates and Beyond
13
Section 3: Leveraging Extensions for the Win

Working with source control

When working with source control in Visual Studio 2019 for Windows, all of our source code actions take place in the Git Changes window. However, if you have a version that has not been updated since November 2020, then you will use the Team Explorer window, as shown in the following screenshot.

Visual Studio changes in version 16.8

One of the joys of writing a book is that things are always changing while content is being created, edited, and reviewed. This is exactly what happened with respect to Git source control and Visual Studio 2019 for Windows.

In mid-November of 2020, developers who installed or upgraded Visual Studio found a new Git Changes window for handling source control, replacing functionality that was previously contained in the Team Explorer window. To aid readers with older versions, we will try to show versions of both the new Git Changes and previous Team Explorer windows:

Figure 4.2 – Git Changes...