Shards language support for Visual Studio Code.
- Syntax Highlighting - Rich syntax highlighting for
.shs
files - Go to Definition - Navigate to wire definitions, @define, @template, macro, and mesh declarations
- Document Outline - View and navigate meshes and wire definitions in the outline
- Debugging Support - Debug Shards programs directly in VS Code
- Cross-file Navigation - Jump to definitions across multiple files
-
Install the extension from the VS Code Marketplace or run:
code --install-extension fragcolor.shards
-
Configure Shards path in VS Code settings:
- Open Settings (Ctrl+,)
- Search for "shards"
- Set
shards.shardsPath
to your Shards executable path, for example:"shards.shardsPath": "C:/Projects/shards/build/clang-x86_64-pc-windows-msvc/debug/shards.exe"
-
Start using - Open any
.shs
file to activate the extension
- Syntax Highlighting - Rich syntax highlighting with proper tokenization
- Go to Definition - Navigate to definitions for wires, @define, @template, macro, and mesh
- Document Outline - Browse code structure with meshes and wire definitions
- Cross-file Support - Navigate definitions across multiple files
For developers wanting to contribute or modify the extension:
- Install dependencies:
npm install
- Compile in watch mode:
npm run compile
- Debug: Go to Run → Start Debugging to test the extension
The extension is built with TypeScript and includes:
- Syntax highlighting via TextMate grammar
- Language features (go-to-definition, outline, debugging)
- Integration with the Shards executable
Contributions are welcome! Feel free to open an issue or submit a pull request.
To share this extension with the world, read on about publishing an extension.
vscode-shards-syntax source code is licensed under the BSD 3-Clause license.