ABB RAPID Language Support
This Visual Studio Code extension provides syntax highlighting, code formatting, code snippets, and file icons for the ABB RAPID programming language, making it easier to write and read RAPID code within the editor.
Features
Syntax Highlighting: The extension highlights RAPID keywords, data types, comments, strings, and other language constructs, making your code more readable and easier to navigate.
Error Highlighting: Catch syntax and declaration errors directly in your code as you type. The extension highlights issues such as missing semicolons, duplicate global declarations, or malformed code blocks. This feature is enabled by default but can be turned off in the extension settings (enableErrorHighlights
).
Code Formatting: Automatically format your RAPID code according to a set of predefined rules, ensuring consistent code style and improving code readability.
Code Snippets: Boost your productivity with a collection of pre-defined code snippets for common RAPID constructs, such as variable declarations, loops, and conditional statements.
File Icons: Easily identify RAPID source files in the explorer with dedicated file icons.
Usage
The extension automatically activates when you open a file with the .mod
, .modx
, .sys
, or .prg
extension.
Syntax Highlighting
RAPID keywords, data types, comments, strings, and other language constructs will be highlighted according to the defined syntax rules.
Error Highlighting
The extension underlines common syntax and semantic issues while editing RAPID code, including:
- Unexpected or invalid tokens
- Missing semicolons
- Duplicate global declarations
Errors are displayed in the Problems tab and directly in the editor. You can disable this behavior via the abb-rapid-pack.enableErrorHighlights
setting.
The extension will prompt you to use its default formatter. The default formatter will automatically format the file after each save.
This can be turned on and off in the extension settings (enableRapidFormatter
).
Code Snippets
Add multiple code snippets for data types and common RAPID constructs.
File Icons
RAPID source files (.mod
, .modx
, .sys
, or .prg
) will display a dedicated file icon in the explorer, making it easier to identify and navigate your RAPID projects.
License
This extension is licensed under the MIT License.