[Update] ScriptParasite 2: Compatibility with Rhino 8 script editors

Hi Barden, thanks for asking.

For python I’m not sure, but for C# it’s really doable (It’s the reason I wrote this in the first place, without autocomplete coding is a lot less efficient). My experience is that autocomplete and code navigation in VSCode is really good.

For VSCode, these are the prerequisites:

Install vscode
Download & Install vscode

Install .NET SDK
Install .NET SDK 9 for the latest rhino 8 version. Older versions might require .net sdk 7 or 8.
Browse all .NET versions to download | .NET

Install C# Dev Kit extension for VSCode
C# Dev Kit - Visual Studio Marketplace

Place a project file called scripts.csproj:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net90</TargetFramework>
    <LangVersion>11</LangVersion>
    <NoWarn>CS7011</NoWarn>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="GH_IO">
      <HintPath>C:\Program Files\Rhino 8\Plug-ins\Grasshopper\GH_IO.dll</HintPath>
      <Private>False</Private>
    </Reference>
    <Reference Include="Grasshopper">
      <HintPath>C:\Program Files\Rhino 8\Plug-ins\Grasshopper\Grasshopper.dll</HintPath>
      <Private>False</Private>
    </Reference>
    <Reference Include="RhinoCommon">
      <HintPath>C:\Program Files\Rhino 8\System\netcore\RhinoCommon.dll</HintPath>
      <Private>False</Private>
    </Reference>
  </ItemGroup>
</Project>

This will link to your current Rhino Version and autocomplete automatically.

Other popular editor for C# are JetBrains Rider (not free) and Microsoft Vistual Studio (available for free for most)

1 Like