High-performance VS Code extension for TradingView developers.
Industrial-strength static analysis, intelligent type checking, and ultra-resilient parsing for Pine Script v6.
- Node.js: v18.0.0 or higher.
- npm: v9.0.0 or higher.
The easiest way to use Pine Script Pro is to install the pre-compiled extension:
- Download the latest
pine-script-pro-1.1.2.vsixfrom Releases. - In VS Code, run
Cmd+Shift+P→ Extensions: Install from VSIX... - Select the file and restart VS Code.
If you want to contribute or build the extension yourself:
# 1. Clone the repository
git clone https://github.com/revanthpobala/pinescript-vscode-extension.git
cd pinescript-vscode-extension/pine-script-extension
# 2. Install dependencies (Top-level, Client, and Server)
npm run postinstall
# 3. Build the Extension
# This compiles TypeScript and bundles everything with esbuild
npm run bundle
# 4. Package as VSIX
npx vsce packageThe project includes a dedicated test suite for verifying linter logic and type inference.
cd pine-script-extension/server
npm run build
node out/test/test_runner.jsNote: New test cases should be added to pine-script-extension/server/test/cases.json.
To update function signatures or return types in the linter:
- Edit
pine-script-extension/server/scripts/update_core_params.js. - Run the script:
cd pine-script-extension/server/scripts node update_core_params.js
If you modify the grammar:
cd tree-sitter-pinescript
npx tree-sitter build --wasm
cp tree-sitter-pinescript.wasm ../pine-script-extension/server/wasm/NOT FINANCIAL ADVICE. This software is for development purposes only. The author (Revanth Pobala) is not responsible for any financial losses. Use at your own risk.
This project is licensed under a modified MIT License. Mandatory attribution to Revanth Pobala is required for any usage of the code (including single lines or snippets). See LICENSE.txt for full details.


