Skip to content

Run Mode: Custom

Peter Thomas edited this page May 25, 2026 · 12 revisions

Caution

These instructions are valid only for Karate 1.5.2. The Windows desktop support is not part of v2.
The instructions below are for the 2.X version of the Karate VS Code Extension
Please contact us if you have an enterprise or support requirement

You can get the specific version of Karate you need by following the instructions here: Standalone JAR.

To use this in Visual Studio Code, you have to switch the "Run Mode" in the extension settings to use "custom" (instead of "bundled") as shown below. For instructions on how to get to the extension settings, refer to this link.

 

This is an example of using karate.jar in the workspace root:

java -cp .;karate.jar com.intuit.karate.Main ${karateArgs}

To add extra JAR files to the classpath such as Karate Robot you can edit the value of the "Run: Mode Custom" to something like this:

java -cp .;karate.jar;karate-robot.jar com.intuit.karate.Main ${karateArgs}

You will need to use : (colon) instead of ; (semicolon) if on Linux or a Mac.

Clone this wiki locally