alibrescript-vscode
Autocomplete and help text for Alibre Script, the scripting built into
Alibre Design.
- Commands
- alibrescript: Check Configuration reports why autocomplete is not working.
- Features
- Autocomplete for Alibre Script classes, methods and properties.
- Hover text explaining what a method does and what each value means.
- Return types, so mistakes show up before you run the script in Alibre.
- Real parameter names, so you see
Depth rather than arg0.
- Type stubs bundled with the extension and registered for you.
- Settings
- alibrescript.enableTypeHints turns the autocomplete on and off.
- Requirements
- VS Code 1.125 or newer.
- The Python extension and Pylance, installed with this one.
- Python 3.6 or newer, for the editor only.
- Usage
- Put
from AlibreScript import * at the top of your file, for VS Code only.
- Delete that line before running the script in Alibre Design.
- Alibre Script is Python 2.7, so no f-strings and no type hints.
- Related
MIT license. Not affiliated with or endorsed by Alibre, LLC.
| |