Creating Grasshopper Components with VS Code

I think there is no ready-to-use solution. But if you follow the Grasshopper SDK, you can basically setup the same template for Visual Studio Code by adapting these steps:

Essentially its all about referencing some GH and Rhino dlls, implementing some interfaces and build and rename the compiled.dll into .gha. It shouldn’t matter if you use IronPython or C#, but I could imagine that using IronPython adds another layer on complexity. Personally I’m not so sure if its really worth the effort, because within the .NET world, using VSCode is definitely a step backwards. VS offers a much better debugging and profiling experience, which justifies all the disadvantages. Especially if you run into any sort of programming issue.

Also see this, in case you want to know how to include autocompletion etc:

1 Like