Script-A-Rest Language Support
VS Code extension that provides language support for Script-A-Rest, a custom scripting language that uses Markdown files.
Features
This extension provides the following language features for Script-A-Rest code blocks within Markdown files:
- Syntax highlighting for Script-A-Rest commands and syntax
- IntelliSense auto-completion for commands (Ctrl + Space)
- Hover information for commands
- Auto-closing pairs for brackets, parentheses, and quotes
- Document link provider for file path resolution for
Call, ExecuteCSV, and Using commands (Ctrl + click)
- Functionality to find references to a variable within the same file (Ctrl + click variable name)
- Functionality to rename a variable within the same file (F2 while cursor is on the variable)
- Functionality to find references to a CSV and Markdown files in the workspace (Right click on file in Explorer and click "Find Script/CSV References")
- Functionality to automatically update references when a file is renamed or moved
- Formatting provider for Script-A-Rest code
- Diagnostics provider for Script-A-Rest code which
- Warns on undefined variables
- Warns on variables being used before being defined
- Warns on variables not following naming conventions
- Provides code actions to fix variable naming conventions (Ctrl + . while cursor is on the variable)
Usage
- Open a Markdown (.md) file
- Create a code block using triple backticks and specify the language as
cs
- Start typing Script-A-Rest commands to see syntax highlighting and command suggestions
Requirements
- VS Code version 1.75.0 or higher
| |