When viewing code with deeply nested brackets, it can be hard to figure out which brackets match and which don’t. … Continue reading How to enable bracket pair colorization in Visual Studio Code and Visual Studio
Category: Visual Studio Blog
Below there’s over 70 Visual Studio blog posts covering a large variety of Visual Studio tips, tricks, how-tos, new features etc…
How to store code snippets in Visual Studio for re-use later
Storing code snippets in the Visual Studio Toolbox is really useful when we are preparing for a demo or tutorial. … Continue reading How to store code snippets in Visual Studio for re-use later
How to launch a web app in multiple browsers from Visual Studio at the same time
In Visual Studio to launch your web app in multiple browsers simply set multiple defaults in the ‘Browse With…’ screen … Continue reading How to launch a web app in multiple browsers from Visual Studio at the same time
How to scaffold multiple ASP.NET CORE MVC controllers at once using a bat file
Previously I wrote about how we can customise the templates Visual Studio uses when it scaffolds a controller. After changing … Continue reading How to scaffold multiple ASP.NET CORE MVC controllers at once using a bat file
How to run Entity Framework Core DB scaffolding from a .bat file in Visual Studio
It’s very handy to wrap the Entity Framework Scaffolding command in a bat file and run it on demand from … Continue reading How to run Entity Framework Core DB scaffolding from a .bat file in Visual Studio
Override the default controller scaffold templates in Visual Studio 2019 and .NET 5.0
The real power of scaffolding in Visual Studio comes from the ability to override the templates which are used to … Continue reading Override the default controller scaffold templates in Visual Studio 2019 and .NET 5.0
Visual Studio constructor creation shortcuts
Visual Studio has shortcuts for almost everything. Getting to know even some of these can save you a lot of … Continue reading Visual Studio constructor creation shortcuts
Close the console window when debugging stops in Visual Studio
Visual Studio by default will keep a console app open after debugging. A lot of the time after debugging console … Continue reading Close the console window when debugging stops in Visual Studio
How to select and edit multiple lines at once in Visual Studio
In Visual Studio to edit multiple lines which are vertically aligned at once press Alt and select the aligned block … Continue reading How to select and edit multiple lines at once in Visual Studio
Enabling view refresh after .CSHTML changes for new projects in Visual Studio
Since .NET Core 3.0 your views in MVC won’t refresh after you change your .CSHTML markup. You can enable this … Continue reading Enabling view refresh after .CSHTML changes for new projects in Visual Studio
Creating .NET 5 projects in Visual Studio WITHOUT editing the project file after creation
If you want to create a .NET 5 console or web app you’ll notice by default Visual Studio will create … Continue reading Creating .NET 5 projects in Visual Studio WITHOUT editing the project file after creation
Using Visual Studio shortcuts to create C# properties
In Visual Studio typing out new C# properties along with their get/sets can be tedious. A shortcut is to type.. … Continue reading Using Visual Studio shortcuts to create C# properties
Viewing all copied items in the Visual Studio clipboard ring
In Visual Studio when you copy some code it gets added into the clipboard ring which can store a maximum … Continue reading Viewing all copied items in the Visual Studio clipboard ring
Showing Visual Studio pinned tabs in a separate row
In Visual Studio if you have lots of tabs open you can pin the ones you’re directly working on to … Continue reading Showing Visual Studio pinned tabs in a separate row
How to configure a vertical tab layout in Visual Studio
If you have a wide monitor you may prefer to have Visual Studio tabs positioned vertically on the left or … Continue reading How to configure a vertical tab layout in Visual Studio
Find All References for DB objects using a SQL Server Database Project
We use ‘Find All References’ a lot in Visual Studio to navigate around C#/VB code. By creating a SQL Server … Continue reading Find All References for DB objects using a SQL Server Database Project
Opening web apps in Incognito mode from Visual Studio
If you’re working on a web app in Visual Studio and want to launch it in Incognito mode to make … Continue reading Opening web apps in Incognito mode from Visual Studio
Using Visual Studio Task List window to view todo items
In Visual Studio the Task List window is super useful and allows us to view items which require attention across … Continue reading Using Visual Studio Task List window to view todo items
Running multiple projects in Visual Studio at once
Launching multiple projects at the same time from Visual Studio can be really useful if one of your projects triggers … Continue reading Running multiple projects in Visual Studio at once
Saving Visual Studio Output window contents to file
Are you often trying to scroll up and down the Output window in Visual Studio to copy its contents so … Continue reading Saving Visual Studio Output window contents to file
Increasing Visual Studio startup time by not showing slow windows and not restoring state from your last session
There’s a lot of different functionality windows and extensions in Visual Studio but many can slow performance and add a … Continue reading Increasing Visual Studio startup time by not showing slow windows and not restoring state from your last session
Creating a DTO class from a JSON string in Visual Studio
If you’ve got back some JSON from a REST API you’ll likely be wanting to use Newtonsoft or System.Text.Json (.NET Core … Continue reading Creating a DTO class from a JSON string in Visual Studio
Converting images to WebP format in Visual Studio with the WebP Toolkit extension
If your here I’m assuming you already know a little about it Googles WebP image format. If not check out … Continue reading Converting images to WebP format in Visual Studio with the WebP Toolkit extension
Using the C# Interactive window to test code snippets in Visual Studio
If you want to test little snippets of code in Visual Studio before having to change your code and having … Continue reading Using the C# Interactive window to test code snippets in Visual Studio
Excluding tables in Entity Framework Core Scaffold-DbContext command
In Entity Framework Core DB First if you don’t want models created for certain tables you need to explicitly list … Continue reading Excluding tables in Entity Framework Core Scaffold-DbContext command