ZLint VSCode Extension
A Visual Studio Code extension that integrates the ZLint linter for Zig code.
✨ Features
- 🔍 Real-time Linting: Automatically detects and highlights issues in your Zig code
- ⚡️ Fast Performance: Quick analysis without slowing down your editor
- 💡 Detailed Diagnostics: Clear error messages with explanations and suggestions
- 🛠️ Configurable: Customize linting behavior through VSCode settings
📦 Installation
Install the ZLint binary:
curl -fsSL https://raw.githubusercontent.com/DonIsaac/zlint/refs/heads/main/tasks/install.sh | bash
Install the extension from the VSCode marketplace or build it locally:
bun install
⚙️ Configuration
The extension can be configured through VSCode settings:
{
"zig.zlint": {
"enabled": true,
"path": "/path/to/zlint" // Optional: specify custom path to zlint binary
}
}
Settings
zig.zlint.enabled : Enable/disable the extension (default: true )
zig.zlint.path : Custom path to the zlint binary (optional)
🔨 Building from Source
- Clone the repository
- Install dependencies:
bun install
- Build the extension:
bun run index.ts
📝 License
This extension is licensed under the same terms as the ZLint project.
| |