ROS2 Message Schema
Syntax highlighting for ROS2 interface files in VS Code: .msg, .srv, and .action.
Features
- Syntax highlighting for ROS2 message, service, and action definition files
- Comment toggling with
# line comments
- File associations so
.msg, .srv, and .action files are recognized automatically
Supported syntax elements include primitive types (bool, int32, float64, string, etc.), message types (geometry_msgs/Point), array forms ([], [N], [<=N]), constants, fields with optional default values, section separators (---), and comments.
Installation
From VSIX
- Build the extension:
npm run compile then npm install -g @vscode/vsce and vsce package
- In VS Code: Extensions → ... → Install from VSIX → select the generated
.vsix file
From source
- Clone this repository into your VS Code extensions directory (e.g.
~/.vscode/extensions/ros2-msg-syntax-0.1.0)
- Run
npm install and npm run compile
- Reload VS Code or run Developer: Reload Window
Development
npm install — install dependencies
npm run compile — compile TypeScript to out/
- Run Extension from VS Code (F5) — launch a Development Host to test the extension
License
MIT
| |