9 Productivity Tips For Visual Studio 2019

SHARE

Hi fellow developers. I would like to share with you a couple of cool new features from Visual Studio 2019.

These new and old features do not require you to install any other additional tools or extensions. They have already been implemented in VS19’s vanilla installation. Let’s have a look at some of these features:

1. Multi paste

It has been here for a while but now boasts a new, cool-looking appearance. Without any setup needed, you can now use CTRL + SHIFT + V to access the clipboard paste window to easily paste your CTRL + Cs instead of using the standard CTRL + C, CTRL + V combo. Pretty cool, right? (This is not necessarily a new feature; it’s more like an unknown one.)

2. Refactoring tools

Especially useful for team leaders, during code reviews, when refactoring code or just for the general need to keep your document well formatted, etc. At the bottom of your text editor, there are these Document health” indicators.

When your document is alright, no issues are found and you are good to go. Warnings are shown with a yellow triangle, as you are used to.

This is useful because with only one glance you can determine whether or not your document has some issues.

3. Code duster

Now, when you forget the semicolon (the world champion of hide and seek), when you are missing parentheses or some quotation marks, or make any other syntax errors, you can easily navigate through those errors with arrows or the keyboard shortcut ALT + PgDn/Up. You don’t need to stare into your monitor that much. Also, right next to the right arrow, you can see a little brush for code cleanup. You can configure your own cleanup profile to fit your needs.

Set it up. Do not manually clean your code. Your time is precious; don’t use it meaninglessly.

4. Data Breakpoints

Especially useful while debugging. Data breakpoints could be a good/alternate way to debug your application. Instead of putting regular breakpoints in your code, you can open

Locals->Property Name->Break When Value Changes.

This is especially useful in scenarios where the global variable value has been changed.

5. Watches

The Watch window now contains a search bar where you can quickly navigate through the variables, data collections or whatever your heart desires. Also, the comma separator in the Autos/Watch/Locals window is very useful. After double-clicking on the selected property, type “,” after the property name to access the drop down list of all the possible format specifiers.

6. Performance

To improve the performance of your Visual Studio, open Options->Project and Solutions and disable this option: Restore Solution Explorer project hierarchy state on solution load.

7. Nice to Have

It’s been commonly used throughout the ages, but keeping track of your active item in the Solution Explorer could be pretty useful. Navigate through Options->Project and Solutions->General->Track Active Items in Solution Explorer (check).

8. Annoying tool tip? No More.

We love tool tips, right? But remember the last time a tool tip was an obstacle to your code and you were forced to click somewhere else to get rid of it? In 2019, you can just hold “Ctrl” to make the tool tip transparent and finish the chunk you were just working on.

9. Extra Tip From Visual Studio 2017

Not quite sure if this one is that well known, but did you know that Visual Studio also provides a windows layout manager? This is especially useful when you are taking your work home (not recommended), you are using different hardware throughout the office or you are operating at multiple workstations.

I hope you like these features as much as I do. Now — let’s be productive and work smart!

Read on: Good Code vs Bad Code

Credits:

https://devblogs.microsoft.com/visualstudio/enhanced-in-visual-studio-2019-search-for-objects-and-properties-in-the-watch-autos-and-locals-windows/

https://docs.microsoft.com/en-us/visualstudio/ide/whats-new-visual-studio-2019?view=vs-2019

https://devblogs.microsoft.com/visualstudio/visual-studio-tips-and-tricks/

 

 

SHARE

Cookie Settings

×

When you visit any website, it may store or retrieve information on your browser in the form of cookies. This information may be about you, your preferences or your device. This is mostly used to make the website work as you would expect it to. The information doesn’t identify you but can be used to offer a more personalized web experience.

Because we respect your right to privacy, you can choose to not allow certain types of cookies. By clicking on the different category headings, you can find out more and change from our default settings. However, blocking certain types of cookies may negatively impact your experience on this site and the services we are able to offer.

Cookie Policy

Manage Consent Preferences

These cookies are necessary for the website to be able to function, hence cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services. This includes setting your privacy preferences, logging in or filling in forms. You can set up your browser to block or alert you about these cookies, however some parts of the website won’t work as a result. These cookies don’t store any personally identifiable information.

These cookies allow us to count visits and traffic sources, so we can measure and improve the performance of our site. They help us know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies, we will not know when you have visited our site.

These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites.    They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.