The most convenient way to use D2 is to just run it as a CLI executable to produce SVGs from .d2 files. You can run the install script with --dry-run to see the ...
This project adds some entires under Create->Script Template for creating ScriptableObject and plain class files. There's also a window for editing custom and built-in templates. The custom templates ...