lean-format-vscode
v2.1.0
Published
Syntax highlighting, formatting, and validation for LEAN (Lightweight Efficient Adaptive Notation) format
Maintainers
Readme
LEAN Format Support for VS Code
Syntax highlighting and language support for LEAN (Lightweight Efficient Adaptive Notation) format.
Features
- Syntax Highlighting - Beautiful color coding for LEAN files
- Snippets - Quick templates for common patterns
- Auto-formatting - Format LEAN files on save
- Validation - Check LEAN syntax for errors
- Code Folding - Collapse/expand sections
Syntax Examples
Row Syntax (Compact Tables)
users(id, name, email, age):
- 1, Alice, "[email protected]", 30
- 2, Bob, "[email protected]", 25Nested Objects
project:
name: "My Project"
version: 1.0
config:
debug: false
timeout: 5000Lists
tags:
- technology
- programming
- dataSnippets
Type these prefixes and press Tab:
kv- Key-value pairobj- Object with nested propertieslist- Simple listrows- Row syntax with headerusers- User table templateproducts- Product catalog templateconfig- Configuration object
Commands
- LEAN: Validate - Check file syntax
- LEAN: Convert to JSON - Info about CLI conversion
Color Theme Support
The extension provides optimal syntax highlighting for:
- Dark+ (default dark)
- Light+ (default light)
- Monokai
- Solarized
- One Dark Pro
- All popular VS Code themes
Requirements
- VS Code 1.80.0 or higher
Extension Settings
This extension contributes the following settings:
lean.format.enable: Enable/disable auto-formattinglean.format.indentSize: Set indentation size (2 or 4 spaces)
Installation
From Marketplace
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Search for "LEAN Format"
- Click Install
From VSIX
code --install-extension lean-format-1.0.0.vsixDevelopment
Building
npm install
npm run packageTesting
- Open in VS Code
- Press F5 to launch Extension Development Host
- Open a .lean file to test
Contributing
Contributions are welcome! Please visit: https://github.com/lean-format/vscode-lean
License
MIT License - See LICENSE file for details
More Information
Enjoy working with LEAN format! ✨
