18 Tricks for Working with Visual Studio
- Transfer
Regardless of whether you are a beginner or have been using Visual Studio for many years, there are many tips and tricks to help you become more productive. For some time we shared tips on Twitter using the hashtag #vstip , and today we have compiled a selection of the best of them today.
Using F10 instead of F5 to build, run, and attach the debugger is automatically interrupted the first time you run your own code. Breakpoints are not necessary.
Starting with Visual Studio 2005,
Reattach to process (Shift + Alt + P) is supported by an extremely useful feature that helps you join the same process over and over again.
Supported since Visual Studio 2017 v15.8
A blue dot on a field indicates thread switching when debugging is in progress.
Supported since Visual Studio 2013
Continued under the cut!
Improve solution loading performance and reduce visual noise by disabling node extension recovery in Solution Explorer, as well as Reopen documents on solution load .
Supported starting from Visual Studio 2019
For fast navigation, use Ctrl + T to find anything in your solution - files, classes, etc.
Supported starting from Visual Studio 2017
Assign a keyboard shortcut to execute “git pull” so that you don’t have to use the CLI or Team Explorer for this.
Supported starting from Visual Studio 2019.
Give Solution Explorer the ability to automatically select the currently active document.so as never to lose its location in the project.
Supported since Visual Studio 2010
Easily highlight HTML elements with a div tag using the Shift + Alt + W combination. The inserted div you can easily edit to any tag you want, and the closing tag will change automatically.
Supported starting from Visual Studio 2017
Copy any JSON fragment to the clipboard and paste it as strongly typed .NET classes into any C # or VB file.
Supported starting from Visual Studio 2013
You do not need to put double quotes around the JSON property names yourself - just enter a colon and Visual Studio will automatically put them.
Supported since Visual Studio 2015
Make IntelliSense and Tooltips Translucentwhile pressing and holding Control.
Supported starting from Visual Studio 2010
Instead of re-entering '(' to display parameter information in method signatures, use Ctrl + Shift + Space to display the currently used overload.
Supported starting from Visual Studio 2010
Play sound when certain events occur in Visual Studio.
Supported starting from Visual Studio 2010
Create your own window layouts for specific development scenarios or monitor settings, as well as easily switch between them.
Supported starting from Visual Studio 2017.
Indicate the necessary Visual Studio components for any solution, and Visual Studio will prompt the user to install them if they are missing. For more information, see the article “ Configure Visual Studio in your organization with .vsconfig .”
Supported since Visual Studio 2019
Visual Studio Spell Checker . An editor extension that checks the spelling of comments, lines, and plain text. It can also spell-check an entire solution, project, or selected items. Options are available for defining multiple languages for spell checking.
Supported since Visual Studio 2013
Add New File . An extension for Visual Studio that allows you to easily add new files to any project. Just press Shift + F2 to create an empty file in the selected folder or in the same folder as the selected file.
Supported since Visual Studio 2015
Git Diff Margin . Git Diff Margin displays the current Git changes in the editable file on the field and in the Visual Studio scroll bar.
Supported since Visual Studio 2012
These were just a few of the thousands of extensions available. To see more, go to the Visual Studio Marketplace .
These were just a few of the tips posted on the hashtag #vstip on Twitter. There are many more tips worthy of attention. Also, if you have some great tips, please share them with the hashtag #vstip.
Debugger
Using F10 instead of F5 to build, run, and attach the debugger is automatically interrupted the first time you run your own code. Breakpoints are not necessary.
Starting with Visual Studio 2005,
Reattach to process (Shift + Alt + P) is supported by an extremely useful feature that helps you join the same process over and over again.
Supported since Visual Studio 2017 v15.8
A blue dot on a field indicates thread switching when debugging is in progress.
Supported since Visual Studio 2013
Continued under the cut!
Solution
Improve solution loading performance and reduce visual noise by disabling node extension recovery in Solution Explorer, as well as Reopen documents on solution load .
Supported starting from Visual Studio 2019
For fast navigation, use Ctrl + T to find anything in your solution - files, classes, etc.
Supported starting from Visual Studio 2017
Assign a keyboard shortcut to execute “git pull” so that you don’t have to use the CLI or Team Explorer for this.
Supported starting from Visual Studio 2019.
Give Solution Explorer the ability to automatically select the currently active document.so as never to lose its location in the project.
Supported since Visual Studio 2010
Editor
Easily highlight HTML elements with a div tag using the Shift + Alt + W combination. The inserted div you can easily edit to any tag you want, and the closing tag will change automatically.
Supported starting from Visual Studio 2017
Copy any JSON fragment to the clipboard and paste it as strongly typed .NET classes into any C # or VB file.
Supported starting from Visual Studio 2013
You do not need to put double quotes around the JSON property names yourself - just enter a colon and Visual Studio will automatically put them.
Supported since Visual Studio 2015
Make IntelliSense and Tooltips Translucentwhile pressing and holding Control.
Supported starting from Visual Studio 2010
Instead of re-entering '(' to display parameter information in method signatures, use Ctrl + Shift + Space to display the currently used overload.
Supported starting from Visual Studio 2010
Other
Play sound when certain events occur in Visual Studio.
Supported starting from Visual Studio 2010
Create your own window layouts for specific development scenarios or monitor settings, as well as easily switch between them.
Supported starting from Visual Studio 2017.
Indicate the necessary Visual Studio components for any solution, and Visual Studio will prompt the user to install them if they are missing. For more information, see the article “ Configure Visual Studio in your organization with .vsconfig .”
Supported since Visual Studio 2019
Extensions
Visual Studio Spell Checker . An editor extension that checks the spelling of comments, lines, and plain text. It can also spell-check an entire solution, project, or selected items. Options are available for defining multiple languages for spell checking.
Supported since Visual Studio 2013
Add New File . An extension for Visual Studio that allows you to easily add new files to any project. Just press Shift + F2 to create an empty file in the selected folder or in the same folder as the selected file.
Supported since Visual Studio 2015
Git Diff Margin . Git Diff Margin displays the current Git changes in the editable file on the field and in the Visual Studio scroll bar.
Supported since Visual Studio 2012
These were just a few of the thousands of extensions available. To see more, go to the Visual Studio Marketplace .
Finally
These were just a few of the tips posted on the hashtag #vstip on Twitter. There are many more tips worthy of attention. Also, if you have some great tips, please share them with the hashtag #vstip.