Box Selection – Visual Studio C#

VISUAL STUDIO TIPSEdit multiple lines of code at the same timeTip 1: Box SelectionLet’s take an example of the following class with integer properties and apply box selection to update int to, let's say, double at one shot.public class Test { int x = 10; int y = 20; int z = 30; int l = 40;}Shortcut … Continue reading Box Selection – Visual Studio C#

Brace Matching – Visual Studio C#

VISUAL STUDIO TIPSCool visual studio tips for productivityPhoto by Shotkit from PexelsWhat is Brace Matching?As C# uses angular braces quite extensively, brace matching helps you identify the corresponding brace pair by highlighting it as shown below.By default, the visual studio uses a gray color highlighter to show brace matching, but the user can override the setting.Tip 1: … Continue reading Brace Matching – Visual Studio C#

Safely rename a project folder Visual Studio

VISUAL STUDIO IDEHow to rename one or more projects inside solution explorer in Visual Studio.Photo by Joan Gamell on UnsplashLearning ObjectivesDevelopers encounter lots of difficulties while renaming a project structure in a solution inside Visual Studio.Renaming a project includesFolder renameProject name update in solution explorerNamespace update throughout the project filesPrerequisitesInstall latest visual studio community edition.Summary StepsClose Visual Studio.Rename the … Continue reading Safely rename a project folder Visual Studio

Enforce code cleanup on build — .Net

.NET CODE ANALYSISCreate code cleanup profiles and run on the build-in Visual Studio.Photo by Blake Connally on UnsplashThe article demonstrates howTo create code cleanup profiles in the Visual Studio solution explorer.Run code cleanup profile manually or automatically on the build.How some of the Visual Studio 2019 code analysis features can improve the quality of our C# code and … Continue reading Enforce code cleanup on build — .Net

Debug .Net Core apps using Linux Kernal in Windows OS

C# CONCEPTSRun .Net Core Apps in WSL2(Windows subsystem for Linux) using Visual Studio in Windows.What is WSL 2?The Windows Subsystem for Linux(WSL 2) lets developers operate on a Linux environment without the burden of a conventional virtual machine or the dual operating systems.Here is the link to install the WSL 2 extension for Visual StudioAfter the extension is … Continue reading Debug .Net Core apps using Linux Kernal in Windows OS

PeachPie- Run PHP on .Net Platforms

NEW CONCEPTUsing the PeachPie Framework.What is PeachPie Framework?PeachPie is a 2nd generation compiler and runtime of the PHP language under .NET Core.It is a lightweight and astonishingly quick framework and most helpful of all: it’s cross-platform.How PeachPie Works?PeachPie Framework is a comprehensive re-implementation of the PHP language in C#, transforming PHP into a standard compiled language.As an … Continue reading PeachPie- Run PHP on .Net Platforms

Ever used code snippets?

FEATURESCode snippets are custom pre-defined templates that make it easier to enter repeating code patterns, such as loops or conditional-statements. Visual Studio Code provides the feature to create recurrent models.This article covers the following topics.How to create a code snippet?How to assign keyboard shortcuts to code snippets?PrerequisitesDownload visual studio code if not installed earlier. LinkInstall … Continue reading Ever used code snippets?

Configure annotations in Swagger documentation for asp.net core api

.NET Core PROGRAMMINGSwashbuckle proposes some useful annotations to enrich documentation. This article describes how to enable annotations.PrerequisitesHow to configure swagger for asp.net core API?Getting StartedStep 1: Install below package:Swashbuckle.AspNetCore.AnnotationsStep 2: Add below code inside ConfigureServices function in startup.cs fileservices.AddSwaggerGen(c =>{c.EnableAnnotations();});CONFIGURESERVICES FUNCTION INSIDE STARTUP.CS FILEHow to add Operation AnnotationSwaggerOperation is a useful attribute where you can … Continue reading Configure annotations in Swagger documentation for asp.net core api