Karate IntelliSense
A high-performance, context-aware VS Code extension for Karate DSL (.feature) files.
Features
- Context-Aware Auto-Completion:
- Karate Steps & Browser Automation:
waitFor, select, input, inputFile, script, mouse, mouseMove, key, keys, click, etc.
- Chained Steps:
* call read(...) support.
karate.* JavaScript APIs: karate.get(), karate.set(), karate.call(), karate.read(), etc.
driver.* Methods: driver.intercept(), driver.back(), driver.title(), driver.screenshot(), driver.quit(), etc.
Key.* Keyboard Constants: Key.ENTER, Key.TAB, Key.SPACE, Key.ESCAPE, etc.
- Hover Documentation:
- Rich Markdown documentation with signatures, parameter details, and copy-pasteable code examples for complex APIs (
driver.intercept, select, script, etc.).
- Signature Help:
- Parameter guides and active parameter tracking when typing function arguments.
Getting Started & Development
Installation & Compilation
npm install
npm run compile
Running Unit Tests
The extension includes a standalone unit test suite that validates completion, hover, and signature providers without needing the Extension Development Host GUI:
npm run compile && node out/test/run.js
Testing in VS Code
- Open this folder in VS Code.
- Press F5 to launch the Extension Development Host.
- Create or open any
.feature file and press Ctrl+Space to test auto-completion, hover, and signature help.
| |