Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Visual Studio 2019 Tricks and Techniques

You're reading from   Visual Studio 2019 Tricks and Techniques A developer's guide to writing better code and maximizing productivity

Arrow left icon
Product type Paperback
Published in Jan 2021
Publisher Packt
ISBN-13 9781800203525
Length 386 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Aaron Cure Aaron Cure
Author Profile Icon Aaron Cure
Aaron Cure
Paul Schroeder Paul Schroeder
Author Profile Icon Paul Schroeder
Paul Schroeder
Arrow right icon
View More author details
Toc

Table of Contents (21) Chapters Close

Preface 1. Section 1: Visual Studio IDE Productivity Essentials
2. Chapter 1: Flavors of Visual Studio FREE CHAPTER 3. Chapter 2: Keyboard Shortcuts 4. Chapter 3: IDE Tips and Tricks 5. Chapter 4: Working with a Repository 6. Chapter 5: Working with Snippets 7. Chapter 6: Database Explorers 8. Chapter 7: Compiling, Debugging, and Versioning 9. Section 2: Customizing Project Templates and Beyond
10. Chapter 8: Introduction to Project and Item Templates 11. Chapter 9: Creating Your Own Templates 12. Chapter 10: Deploying Custom Templates 13. Section 3: Leveraging Extensions for the Win
14. Chapter 11: Overviewing Visual Studio 2019 Extensions 15. Chapter 12: Overviewing VS Code Extensions 16. Chapter 13: CodeMaid is Your Friend 17. Chapter 14: Be Your Team's Hero with CodeGenHero 18. Chapter 15: Secure Code with Puma Scan 19. Other Books You May Enjoy Appendix

What this book covers

Chapter 1, Flavors of Visual Studio, is primarily for those new to programming or .NET development. This chapter describes the key factors to consider when deciding which version of Visual Studio is right for you.

Chapter 2, Keyboard Shortcuts, shows how most tasks can be performed directly from the keyboard, without a mouse. It pulls back the curtain on the magic of keyboard shortcuts in Visual Studio 2019 for Windows and teaches you how to customize the tool.

Chapter 3, IDE Tips and Tricks, demonstrates ways to organize code files and quickly navigate in the IDE/solution files. How to access preview features and use Live Sharing is covered, as well as tips for faster code insertion and editing.

Chapter 4, Working with a Repository, provides all the basic knowledge you need to know to work with Git source control via Visual Studio. It covers how to create/clone a repo as well as how to add files, get updates, and commit code. Branching, merging, and pull requests are also topics.

Chapter 5, Working with Snippets, explains how to use snippets that come pre-installed with Visual Studio, how to manage them with the Code Snippets Manager dialog, and even how to make and import your own custom creations.

Chapter 6, Database Explorers, teaches you how to manage databases in Visual Studio 2019 for Windows as well as Visual Studio Code, and how to create a database, table, and data rows. Then, you'll see how to select and export that data.

Chapter 7, Compiling, Debugging, and Version Control, explores conditional compilation symbols, breakpoints, and immediate and watch windows. How to install Docker is covered before remote debugging is performed in a hands-on exercise using a Docker container. An automated approach to versioning assemblies wraps up this chapter.

Chapter 8, Introduction to Project and Item Templates, is a primer for the chapters that follow. It includes information on when to use templates and how template tags work. The sample project that is used in subsequent chapters is introduced here.

Chapter 9, Creating Your Own Templates, demonstrates how to export and import custom project templates to/from Visual Studio. You will create a new project using a custom template, provided in the download accompanying this book, identify and fix issues with it, and then learn how to make your own project item template.

Chapter 10, Deploying Custom Templates, contains more advanced content leveraging knowledge gained in the two prior chapters. You are guided step by step through an exercise that examines VSIX deployment package creation for a sample client-server solution. By the end, a multi-project template, complete with an IWizard UI implementation, is ready to go. Simply add a new project, enter a database connection string, and out pops a working Web API server sending data down to a WPF client. Information on how to distribute your custom templates to the marketplace rounds out this chapter.

Chapter 11, Overviewing Visual Studio 2019 Extensions, eases in with an introduction to extensions and searching for them in Visual Studio Marketplace. Learn how to manage them and how to create them in both Windows and Mac. Finish with a tour of Roslyn analyzers and create one that analyzes code related to the extension created in the prior exercise.

Chapter 12, Overviewing VS Code Extensions, is dedicated to extensions in Visual Studio Code. How to create extensions is covered through a step-by-step exercise that is designed to put a licensing header at the top of code files. The chapter ends with how to create a VSIX installer file to share the extension or deploy it to the marketplace.

Chapter 13, CodeMaid Is Your Friend, extolls the benefits of organized code, along with a brief history of this popular extension, CodeMaid. Cleanup actions and features such as CodeMaid Spade are explored along with the many configurable options available.

Chapter 14, Be Your Team's Hero with CodeGenHeroâ„¢, studies a unique perspective on code generation. You are guided through an example project where many classes are auto-generated, including the web API and client-side data access components. Key topics such as how to configure a metadata source, blueprints, choosing templates, configuring parameters, and merging output results are covered. Changing the database schema and regenerating the source code adds a finishing touch.

Chapter 15, Secure Code with Puma Scan, helps you understand common application security vulnerabilities such as SQLi, XSS, and security misconfiguration. It talks about how to find vulnerabilities for fun and profit before automating vulnerability detection using the Puma Scan extension. How to extend Puma Scan with custom sinks is discussed as well as how to incorporate it into a DevSecOps pipeline.

Chapter 16, Other Popular Productivity Extensions, is a great, light way to close out this book. This chapter provides an overview of great extensions for Visual Studio, favorite extensions for Visual Studio Code, and some useful extensions for Visual Studio for Mac. Whereas prior chapters on extensions went deep with exercises, this one goes wide. Information is provided on 15 different extensions that can improve your developer experience.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image