Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Knitscript RunnerNew to Visual Studio Code? Get it now.
Knitscript Runner

Knitscript Runner

Jack Hester

|
299 installs
| (0) | Free
Run knitscript files right from vscode
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

KnitScript Runner

An extension for running KnitScript (.ks) files and compiling them to .k (knitout) and .dat files from directly within the file.

Features

  • "Run" button in the editor title for .ks files
  • Right-click option in Explorer for .ks files
  • Automatic compilation to both .k (knitout) and .dat files
  • Configurable Python path and output directory
  • Automatic detection and prompting for python variables used in KnitScript files
  • Option to enable/disable prompting for additional custom parameters

Requirements

  • You must have the knit_script Python package installed (latest tested version is 0.1.34)
  • Python must be in your PATH or configured in the extension settings
  • You must have the "knitout-to-dat.js" or knitout_to_dat_python compiler available

Extension Settings

This extension contributes the following settings:

  • knitscriptRunner.pythonPath: Path to the Python executable (default: "python3")
  • knitscriptRunner.outputDirectory: Directory where output files will be saved (default: same directory as source)
  • knitscriptRunner.promptAdditionalParams: Whether to prompt for additional parameters beyond detected variables (default: true)

How to Use

  1. Open a .ks file in VS Code
  2. Click the play button in the editor title or right-click the file in Explorer and select "Run KnitScript File"
  3. Enter values for all variables expected in "pyargs" (and optionally additional ones, this can be toggled on/off in settings)
  4. The file will be compiled to both .k and .dat files

Release Notes

0.2.0

Initial release of KnitScript Runner.

License

This extension is licensed under the MIT License.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft