RobotCode is a Visual Studio Code extension that enhances your workflow with Robot Framework. It provides a rich set of features to help you write, run, and debug your Robot Framework tests directly within Visual Studio Code.
Built on Robot Framework Core RobotCode is based on the Robot Framework Core and uses its parser, ensuring complete compatibility and consistency. This means you get the same syntax validation, error messages, and behavior as if you were running Robot Framework directly.
Powered by the Language Server Protocol RobotCode is built on the Language Server Protocol (LSP), a modern standard for implementing language support across multiple editors and IDEs. This ensures a seamless and responsive user experience, while making it easier to maintain compatibility with evolving IDE features.
Powerful Command Line Tools
RobotCode extends the Robot Framework CLI with enhanced tools for test execution, analysis, and debugging. It supports robot.toml
configurations, integrates a Debug Adapter Protocol (DAP) compatible debugger, and provides an interactive REPL environment for experimenting with Robot Framework commands. Modular and flexible, these tools streamline your workflow for both development and production.
- Code Editing: Enjoy code auto-completion, navigation and more.
- IntelliSense: Get code completion suggestions for keywords, variables, and more.
- Refactoring: Rename variables, keywords, arguments and more with ease and project wide.
- Enhanced Syntax Highlighting: Easily identify and read your Robot Framework code with support highlight embedded arguments, python expressions, environment variables with default values, and more.
- Code Snippets: Quickly insert common Robot Framework code snippets.
- Test Discovery: Discover and run Robot Framework test cases directly within VS Code.
- Test Execution: Execute Robot Framework test cases and suites directly within VS Code.
- Test Reports: View test reports directly within VS Code.
- Debugging: Debug your Robot Framework tests with ease.
- Command Line Tools: A wide array of tools to assist in setting up and managing Robot Framework environments.
- Code Analysis with Robocop: Install Robocop for additional code analysis.
- Code Formatting: Format your code using Robot Framework’s built-in tools like
robot.tidy
or Robotidy. - Multi-root Workspace Support: Manage multiple Robot Framework projects with different Python environments simultaneously.
- Customizable Settings: Configure the extension to fit your needs.
- RobotCode Repl and Notebooks: Play with Robot Framework in a Jupyter Notebook-like environment.
- And More!: Check out the official documentation for more details.
- Python 3.8 or newer
- Robot Framework 4.1 or newer
- Visual Studio Code 1.86 or newer
- Install the RobotCode extension from the Visual Studio Marketplace.
- Configure your Robot Framework environment with the command-line tools provided by the extension.
- Start writing and running your Robot Framework tests!
For a more detailed guide, check out the Let's get started Guide on the RobotCode website.
RobotCode automatically installs the Python and the Python Debugger extension. Additional extensions may be required depending on your project needs.
For more details on installation, setup, and usage, refer to the official RobotCode documentation.
This project is licensed under the Apache 2.0 License.