RhinoPython is a plugin to allow you to code Rhino python script in VS Code editor and run it in Rhino runtime. It inherits all the autocomplete intelligence from original rhinopython editor and can react faster, while you can benifit all the amazing advatanges that VS Code brings to you.
It is a DesignToProduction open source project, programmed initially for internal use.
:star: From v0.1.7, it supports both Rhino 5 and Rhino 6, with correct build being installed.
The same way as you use the original editor. Just more efficient, simpler and faster.
Check this youtube video to see more clearly of the gif shown below.
This is the client side of RhinoPython editor. To bridge it to Rhino you need a server to listen to VS Code editor, which is another plugin called CodeListener.
Install VS code.
Install python for VS code. It's recommended to familarize yourself with python for VS code at this post first.
Install RhinoPython for VS code.
CodeListener.rhi file in CodeListener latest release, and install it.
Start Rhino, click
tools -> pythonscript -> edit, in the python editor, click
tools -> options, copy those module paths. You might have additional libraries and you have to copy them as well.
In Rhino, click
tools -> options -> Plug-ins -> CodeListener -> Proterties, copy the file containing folder path and open it in the explorer. Copy the
AutoComplete folder path.
Start VS Code, open
user settings by keyboard shortcut
Ctrl+, paste the libraries paths and autocomplete path into the
user settings with key "python.autoComplete.extraPaths", below is an example setting.
AutoComplete doesn't work even if you add the path into
python.autoComplete.extraPaths, it's probably that you haven't add the root folder of the library. For instance, if your library
ExampleLib is under folder
"...\Libs", you might have to add
"...\Libs instead of