This extension provides language support for VeLang programming language (.ve files).
- Syntax Highlighting: Full syntax highlighting for VeLang keywords, types, functions, strings, numbers, and comments
- Code Snippets: Predefined code snippets for common VeLang constructs
- Auto-completion: Basic auto-completion support
- Build Integration: Built-in commands to build and run VeLang projects
- Error Highlighting: Real-time error and warning highlighting from the VeLang compiler
- Download the latest
.vsixfile from releases - In VS Code, go to Extensions view (Ctrl+Shift+X)
- Click the three dots menu (...) and select "Install from VSIX..."
- Select the downloaded
.vsixfile
- Clone this repository
- Install dependencies:
npm install - Compile the extension:
npm run compile - Press F5 to open a new Extension Development Host window
You can configure the extension in VS Code settings:
velang.compilerPath: Path to the VeLang compiler (default: "ve")velang.buildArgs: Additional arguments to pass to the compiler
VeLang: Build Project(Ctrl+Shift+B) - Build the current VeLang projectVeLang: Run Project(F5) - Run the current VeLang project
.ve- VeLang source files
The extension provides syntax highlighting for:
- Keywords:
fn,let,var,if,else,while,for,struct,enum, etc. - Types:
i32,i64,f32,f64,bool,str,string, etc. - Comments: Line comments (
//) and block comments (/* */) - Strings: Double-quoted and single-quoted strings
- Numbers: Integers, floats, hex, and binary literals
- Operators: Arithmetic, comparison, logical, and assignment operators
Available snippets:
fn- Function definitionmain- Main functionif- If statementifelse- If-else statementwhile- While loopfor- For loopstruct- Struct definitionenum- Enum definitionmatch- Match statementlet- Let declarationvar- Variable declarationprint- Print statementret- Return statement
npm install
npm run compile- Open this project in VS Code
- Press F5 to start debugging
- A new Extension Development Host window will open
- Create or open a
.vefile to test the extension
To create a VSIX package:
npm install -g vsce
vsce package- Fork the repository
- Create a feature branch
- Make your changes
- Test the extension
- Submit a pull request
MIT License - see LICENSE file for details.
- Initial release
- Basic syntax highlighting
- Code snippets
- Build and run commands
- Error highlighting