Coloured tabs is supported in Visual Studio 2022. From release 17.1 Preview 2 we can now explicitly set Visual Studio … Continue reading Set tab colour per project when using Coloured tabs in Visual Studio 2022
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 enable selecting subwords on double click in Visual Studio
FYI.. if we choose we can have Visual Studio select subwords when we double click a variable or method name. … Continue reading How to enable selecting subwords on double click in Visual Studio
Preview files without having to double click to open them in Visual Studio
In the top menu in Visual Studio Solution Explorer there is a ‘Preview Selected Items‘ button…. When this is enabled … Continue reading Preview files without having to double click to open them in Visual Studio
Surround lines of code with code snippets in Visual Studio
‘Surround With…’ snippets can be a useful time saver in Visual Studio. They allow us to surround the highlighted code … Continue reading Surround lines of code with code snippets in Visual Studio
Visual Studio has a refactor to rename corresponding file when a class name is changed
FYI… Visual Studio has a refactor which can be used to quickly rename the containing file when a class name … Continue reading Visual Studio has a refactor to rename corresponding file when a class name is changed
How to turn off structure guidelines in Visual Studio
If you want to turn off the structure guidelines in Visual Studio uncheck the highlighted option below. I personally think … Continue reading How to turn off structure guidelines in Visual Studio
Coloured tabs by project or file extension in Visual Studio 2022
FYI… coloured tabs in Visual Studio 2022 is a small but helpful new feature to help you match open files … Continue reading Coloured tabs by project or file extension in Visual Studio 2022
How to show only open files or those with pending changes in Visual Studio Solution Explorer
In Visual Studio you might not have noticed it, but there’s a very helpful file filter available in the Solution … Continue reading How to show only open files or those with pending changes in Visual Studio Solution Explorer
How to navigate backward and forward through previous cursor positions in Visual Studio
In Visual Studio to navigate back to your previous cursor position check out the buttons on the top left of … Continue reading How to navigate backward and forward through previous cursor positions in Visual Studio
How to change the default highlight colour of matching braces in Visual Studio
Visual Studio highlights matching braces when you place the cursor before an opening brace (or after a closing brace) but … Continue reading How to change the default highlight colour of matching braces in Visual Studio
How to enable bracket pair colorization in Visual Studio Code and Visual Studio
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
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