Zen C for VS Code
This extension provides language support for the Zen C programming language.
Features
- Syntax Highlighting: Colorization for keywords, types, functions, strings, and comments.
- IntelliSense: Code completion for local variables, function arguments, and struct fields.
- Hover: Documentation and type information on hover.
- Go to Definition: Navigate to symbol definitions.
- Diagnostics: Real-time error reporting and type checking.
Requirements
You must have the Zen C compiler (zc) installed and available in your system path.
Installation
From Marketplace
Install via VS Code Marketplace: Zen C
From Source
- Clone the repository:
git clone https://github.com/z-libs/zenc-vscode.git
cd zenc-vscode
- Install dependencies:
npm install
- Open in VS Code:
code .
- Press F5 to build and launch the extension in debug mode.
Configuration
This extension contributes the following settings:
zenc.serverPath: Absolute path to the zc executable. Default: zc (assumes it is in your PATH).
Publishing
To publish a new version:
- Update version in
package.json.
- Install
vsce: npm install -g vsce
- Package:
vsce package
- Publish:
vsce publish
License
MIT
| |