NeVeSpl / NTypewriter

File/code generator using Scriban text templates populated with C# code metadata from Roslyn API.
https://nevespl.github.io/NTypewriter/
MIT License
126 stars 25 forks source link

Support for JetBrains Rider #64

Closed rmarskell closed 2 years ago

rmarskell commented 2 years ago

I know this is a long shot, but is there any chance this could be ported to JetBrains Rider as a plug-in? I don't know what kind of a lift it is to port a VS extension to a Rider plug-in, but I would love to use this in Rider.

NeVeSpl commented 2 years ago

Rider is based on IntelliJ IDE which runs on JVM, UI plug-ins are written in Kotlin, and the extensibility model is entirely different from VS. So there would not be much to port, a whole .nt editor would have to be created from the beginning.

The same story is with VSCode.

NTypewrite is CLI capable, NTypewriter.Runtime is IDE agnostic, thus anyone can try to write an editor for it for any IDE. I have no skill or intention to write one for Rider, the one for VSC always was in plans, so maybe someday it will be released.

rmarskell commented 2 years ago

Ah, ok. That's what I figured.

Would it be possible to just create/edit the templates in VS, but have the actual generation run via an msbuild task / nuget package / something so it could generate elsewhere (Rider, CLI, etc.)? (Please forgive my ignorance. 😅)

NeVeSpl commented 2 years ago

Yes, there is a chapter about that in the manual: Build your own CLI

also, there was a try in the past to provide a generic CLI, but apparently, the project has died: https://github.com/TietoEVRY/NTypewriterCLI