Visual Studio is an EPIC IDE. It is feature-rich, well designed, and packed with everything you need to build cool things using ASP.NET. Out-of-the-box, Visual Studio is great, however, your code writing can be further improved through the huge library of extensions that are available through the marketplace. These extensions can give Visual Studio endless new functions and abilities. That is why I have created my favorite Visual Studio extensions of 2021 Edition. I use all the extensions listed below on a daily basis. Give them a try and transform your code writing experience.

Select Next Occurrence: This plug-in replicates some of the useful VS-Code text editing shortcut keys. It allows for multiple-cursors (HOLD ALT and CLICK) and select the next occurrence feature (CONTROL + D). After installing the extensions you may need to set the keyboard shortcut manually. You can do this within Tools ➡ Options ➡ Keyboard. From this menu, find 'Select Next Occurance' and assign the keyboard shortcut. You should set the type as 'text 'editor'. The extension can be downloaded here:

Select Next Occurrence

VisaFora: We spent more time reading code than writing it. Any extension that can help you understand code quicker will save you time. VisaFora adds additional colors within the text-editor to make your code easier to read. Features include rainbow braces and keyword highlighting. Once you install this extension you will not be able to live without it!

VisaFora

VisaFora

VSColorOutput: Adds color to the build output within the output window. When your code fails to compile, this extension can help you to diagnose the error faster:

VSColorOutput

VSColorOutput

Toggle Comment: Adds the VS-CODE toggle code shortcut key into Visual Studio. Simply press CNTRL + / to either add or remove a comment

ToggleComment

Toogle Comment

Code Maid: This is the second most popular download in the marketplace. This is an essential extension that you have to install. CodeMaid adds the ability to clean code, reorganize existing code, format comments, remove white-space, and a whole bunch of other useful tools. This extension is ace for just reordering parts of my code with just a few button clicks. The cleanup options are similar to Resharper's, however, the extension is not as performance intensive. My three favorite features are:

  • "Find in solution explorer" to locate the current file in the solution explorer
  • Clean file automatically on save
  • Cyclomatic complexity!

Code Maid

WakaTime: This is a handy time-tracking app. All you need to do is register and install it. Once registered successfully, you will get a weekly email on Sunday that will tell you how productive you have been, what projects you have been working on, and which languages you been working with the most:

WakaTime

WakaTime

Add New File: Adds an improved way of creating new files within Visual Studio. Adds the ability to create any files, include .gitIgnore files. You can create folders and files by using the / command, e.g. scripts/script.js would create a folder called scripts if it didn't exist, as well as a file called scripts.js

AddNewFile

Roslynator 2019: Roslynator is another refactoring extension. It gives you additional refactoring suggestions within the editor to help you write better code. Roslynator adds over 500 analyzer and refactoring suggestions. There are far more suggestions that I can list here, however, it is an essential tool. You can also configure Roslynator warnings/errors in the .editorconfig file, so you can tailor the rules to your needs!

Roslynator

ReAttach: ReAttach gives you a quick way to debug code by providing the ability to attach to the IIS process, w3wp.exe with a click of a button. This plug-in will save you a bunch of time when a simple F5 doesn't cut it. The keyboard shortcut to re-attach is CTRL+R + CTRL+1:

ReAttach

ReAttach