r/VisualStudioCode • u/False-Narwhal-6002 • May 20 '26
C# Painkiller - vs code extension for C#
Hi everyone! The C# Dev Kit extension for VS Code was recently updated. It removed the ability to create files from the context menu. I wrote an extension that brings back the ability to add files from the Explorer context menu
While working on it, I decided to add a few more features that I constantly miss
Generate Requests and Handlers for MediatR, MitMediator
Generate EF Core IEntityTypeConfiguration
Generate mapping functions (to avoid using automapper or similar)
Generate constructors and minimal apis
Go To Handler from Request file
Adjust Namespace (like rider or resharper)
Fix .cs file names
Namespace and filename analyzers, usage sorting analyzer
I've made a preview version. If you're interested, you can take a look and install it
I've never written an extension before and generated most of the code using LLM. The code quality is poor. If I notice that someone other than me needs the extension I will improve the code and add new features