TMscript Language Support for VS Code
Language support for Techman Robot Script (TMscript). This extension is primarily designed for use with the Script Node in TMflow projects. Standalone script projects are also supported, but some features are still in development.
Features
Syntax Highlighting
Basic syntax highlighting for TMscript Language including:
- Keywords, control flow statements, and operators
- Data types (
int, float, double, string, byte, bool, etc.)
- Built-in functions and classes
IntelliSense
- Autocomplete — Suggestions for functions, classes, methods, and keywords as you type
- Hover Documentation — Hover over any function or type to see its documentation, parameters, and return type
- Signature Help — Parameter hints when calling functions
Supported TMscript Features
Comprehensive support for TMscript 2.24:
Installation
From VSIX
- Download the
.vsix file
- Open VS Code
- Press
Ctrl+Shift+P and run Extensions: Install from VSIX...
- Select the downloaded file
From Marketplace
Search for "Techman Robot Script" in the VS Code Extensions view.
For Development
If you want to contribute or modify the extension:
Clone the repository
git clone https://github.com/Trejz/VS-Code-TMScript-Lang.git
Install dependencies
npm install
Compile the TypeScript code
npm run compile
Test the extension
- Press
F5 in VS Code to open a new Extension Development Host window
- Open a
.tms file to test the extension features
Watch for changes (optional, for active development)
npm run watch
Package the extension
npm install -g @vscode/vsce # Install vsce globally (one-time)
vsce package # Creates a .vsix file
Usage
- Open or create a
.tms file
- Start writing TMscript code
- Use
Ctrl+Space to trigger autocomplete suggestions
- Hover over functions to view documentation
File Association
The extension automatically associates with .tms files, which is not the Filetype provided by Techman. To manually set the language mode:
- Click the language indicator in the bottom-right corner of VS Code
- Select TMScript from the list
Requirements
- VS Code 1.109.0 or higher
Contributing
Contributions are welcome! Visit the GitHub repository to report issues or submit pull requests.
License
This extension is licensed under the MIT License.
Note: This extension is not officially affiliated with Techman Robot Inc. TMscript documentation is based on TMscript 2.24.