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

Sharing our favorite Visual Studio Code extensions

With the popularity of VS Code as an IDE, it should come as no surprise that there are also thousands of extensions available for this flavor of Visual Studio. Once again, some of the extensions featured here are free, some have free trials, and others require payment.

Increment selection

Previously, we discussed the multiple cursors feature in VS Code. This extension makes quick work of a task that I surprisingly end up doing fairly often. When creating sample data, seed data, or just updating a list, I often need to increment a number of some sort. I used to jump over to another tool, but with this handy extension, there is no need.

Once you make your multiple selections, activate the extension with Ctrl + Alt + I (Option + Command + option + I on a Mac):

Figure 16.6 – Incrementing a list of numbers

CamelCase

Not just a clever name, this little utility is a quick way to camel case strings...