GasLens delivers real-time static analysis and optimization guidance for Solidity smart contracts directly inside VS Code. Use it to surface risky patterns, understand their impact, and apply safer alternatives without leaving your editor.
Features
Continuous lint-style diagnostics that highlight security and gas inefficiencies as you type.
A Pattern Insights view that explains each finding, links to documentation, and shows trimmed source snippets.
One-click optimization commands to apply safe fixes or refactorings suggested by the Siphon engine.
Configurable WebSocket connection to point at your own Siphon analysis service.
Requirements
VS Code 1.102.0 or later
Node.js 20.x or later (for local development)
GasLens analysis server running and accessible via WebSocket (defaults to ws://localhost:8000/ws)
Solidity (.sol) files to analyse
Extension Settings
This extension contributes the following settings under the gaslens namespace:
gaslens.server.host: Hostname or IP address for the Siphon WebSocket server (defaults to localhost).
gaslens.server.port: TCP port for the Siphon WebSocket server (defaults to 8000).
gaslens.server.endpoint: Path appended to the WebSocket URL (defaults to ws).
gaslens.auth.token: Dashboard token forwarded to the Siphon service for authenticated analyze/optimize requests.
gaslens.analysis.onSave: Toggle automatic analysis whenever Solidity files are saved (enabled by default).
Known Issues
Release Notes
2.1.2
Bump Siphon Library version
2.1.1
Remove debug pop ups
2.1.0
Add dependency
2.0.1
Released on 2026-05-30
2.0.0
Major fixes
1.3.4
Add new Patterns
1.2.5
Fix pattern types
1.2.4
Added Export and Import Configs
1.2.3
Added Release Notes to pipeline
1.2.2
CI automated version bump.
1.2.1
Pipeline and build improvements.
1.1.1
Logo update and code formatting with Prettier.
1.0.1
Release notes update for previous versions.
1.0.0
Full release with complete support for real-time Solidity analysis, optimization workflows, and Pattern Insights.
0.1.0
First public release.
0.1.0-beta
First beta release with end-to-end optimization workflows enabled for supported Solidity patterns.