A couple of days back, Microsoft has declared the general accessibility of Visual Studio 2019. In any case, I’ve been utilizing Visual Studio 2019 only since the principal inward form – sometime before the arrival of Preview 1 in December of 2018. Amid this time, there has been a lot of little highlights that have put a grin all over and made me progressively profitable.
I need to impart a couple of them to you since they are not all undeniable and some expect you to change a few settings. How about we make a plunge.
Clean arrangement load
At the point when an answer is shut, its state is spared so that next time you open it, Visual Studio can reestablish the crumbled/extended condition of ventures and organizers in Solution Explorer and revive the archives that were left open. That is incredible yet I incline toward a fresh start when I open arrangements – no documents open and all the tree hubs crumbled in Solution Explorer.
I composed the Clean Solution augmentation to give this conduct in past adaptation of Visual Studio. This component is presently local to Visual Studio 2019 and can be empowered with two separate checkboxes. Go to look (Ctrl+Q) and type in “load” to discover the Projects and Solutions > General alternatives page.
Uncheck both the Reopen reports on arrangement burden and Restore Solution Explorer venture progressive system on arrangement load checkboxes.
An additional profit by unchecking these two checkboxes is that arrangements will stack quicker as well, as a result of the disposed of overhead from reestablishing state. Win-win.
Git pull from alternate route
I complete a ton of work with GitHub repos and I frequently take pull demands from individuals. That implies I should try to complete a git pull before I make any ensuing submits. In any case, incidentally, over and again, this is something I will in general overlook. The outcome is that I end up with union clashes and different irritations.
The best way to do git dismantle in the past was to either utilize Team Explorer, the direction line, or an outside apparatus. What I truly needed was a console easy route from inside Visual Studio that did it for me.
Already, Team Explorer’s force direction was not an order you could dole out console easy routes to however at this point it is. Go to seek (Ctrl+Q) and type “console” to discover the Environment > Keyboard choices page. From that point, discover the Team.Git.Pull orders from the rundown. At that point appoint any alternate way to it and hit the OK catch. I utilized Ctrl+Shift+P.
To naturally play out a git pull upon arrangement load, experiment with the free Git Pull augmentation.
Code Cleanup for C#
Keeping source code perfectly organized and guaranteeing coding styles are steady is something I’ve never been great at. The new Code Cleanup include is an immense help in keeping my code slick and clean since I have designed it to run every one of the fixers as a matter of course.
To do that, go to the Code Cleanup menu sitting in the base edge of the editorial manager window and snap Configure Code Cleanup.
In the exchange, select every one of the fixers one by one from the base sheet and hit the up-bolt secure to move them into the top. At that point hit OK.
Presently all fixers will run each time you play out a Code Cleanup. Just hit Ctrl+K, Ctrl+E to execute. The outcome is a pleasantly designed record with a pack of coding style rules connected, for example included missing supports and modifiers. Voila!
IntelliCode is another component that expands the IntelliSense culminations dependent on the setting you’re in utilizing propelled AI calculations. That demonstrates valuable for some, situations including when you are investigating new interfaces or APIs. I compose a ton of Visual Studio augmentations and the API surface is big to the point that there are portions of it I have never utilized. When I’m investigating another piece of the Visual Studio API, I think that it’s accommodating to have IntelliCode direct me through how to utilize it.
To empower this amazing component, you can download IntelliCode from the Visual Studio Marketplace and introduce the expansion.
IntelliCode works for C#, C++ and XAML.
See substance of Clipboard Ring
Each time you duplicate (Ctrl+C) something in Visual Studio, it is being put away in the Clipboard Ring. Hitting Ctrl+Shift+V enables you to burn through the things in the Clipboard ring and glue the thing you select. I think that its helpful to keep different things in the clipboard on the double and after that glue the different things too explicit areas.
In Visual Studio 2019, the Clipboard Ring presently demonstrates a visual see of its substance when hitting Ctrl+Shift+V. That makes it simpler than any time in recent memory to explore through the duplicate history and select the correct thing to glue.
New C# Refactorings
There are bunches of new and profoundly helpful refactorings in C# that I’ve come to rely upon each and every day. They appear as recommendations in the light and incorporate moving individuals to interface or base class, altering namespaces to coordinate organizer structure, convert foreach-loops to Linq inquiries, and significantly more.
To become familiar with the new refactorings and other C# includes in Visual Studio 2019, look at this post on the .NET blog.
Being able to bury some work for sometime later is overly useful. Git Stash is the thing that gives me that capacity without making another branch. In case you’re acquainted with TFS, you can consider Git Stash as a shelveset.
Best of all, I can deal with every one of my supplies inside the Team Explorer window. They are anything but difficult to make and apply, and I’ve been utilizing them much progressively after Visual Studio presently locally bolsters them.
Attempt Visual Studio 2019
These were only a couple of the numerous little enhancements found all through Visual Studio 2019 that I find especially valuable. It would be ideal if you share any tips or enhancements you’ve discovered accommodating in the remarks underneath!