u/False-Narwhal-6002

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

GitHub page

VS marketplace 

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

reddit.com
u/False-Narwhal-6002 — 3 days ago
▲ 8 r/csharp

CSharp Painkiller - vs code extension for C#

https://preview.redd.it/k4vrn27vp62h1.png?width=563&format=png&auto=webp&s=0211c2f68947fa04bc16ef719b1b6ac456210425

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

GitHub page

VS marketplace

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

reddit.com
u/False-Narwhal-6002 — 4 days ago