Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Visual Studio 2019 Tricks and Techniques
  • Table Of Contents Toc
Visual Studio 2019 Tricks and Techniques

Visual Studio 2019 Tricks and Techniques

By : Aaron Cure, Schroeder
4.2 (9)
close
close
Visual Studio 2019 Tricks and Techniques

Visual Studio 2019 Tricks and Techniques

4.2 (9)
By: Aaron Cure, Schroeder

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)
close
close
1
Section 1: Visual Studio IDE Productivity Essentials
9
Section 2: Customizing Project Templates and Beyond
13
Section 3: Leveraging Extensions for the Win

Stashing (and applying) your code

There are a few scenarios where it makes sense to make a temporary, local copy of your changes. Sometimes you are in the middle of working on a feature and the following happens:

  • Another priority comes up, requiring you to shift gears and quickly fix a bug.
  • You have to review a pull request (covered near the end of this chapter) and need to check out a different branch.
  • The code is working, but not quite the way you want it to and you want to do potentially risky refactoring.

In these scenarios, the stash function (git stash) can be a good option to use. This allows you to save the state of the code you are working on for now and look at the original branch, or switch to another branch, without any pending changes.

In the following screenshot, from Visual Studio 2019 for Windows, an optional message is entered to describe the stash and then either Stash All or Stash All and Keep Staged is clicked instead of Commit Staged:

...
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Visual Studio 2019 Tricks and Techniques
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon