CAPL for Visual Studio Code
This extension provides CAPL editing support including syntax highlighting, IntelliSense, and validation.
Select a Vector Toolset
The Vector CAPL extension requires a Vector toolset to be installed. The Vector toolset comes with the commercial products CANoe, CANoe4SW, and CANoe4SW Server Edition. It is also part of the freely available Vector Test Unit Runner.
By default, the latest version of the Vector toolset is used. To select a specific version, use the command
Your selection is synchronized across all Vector extensions you have installed.
Use an Environment
We highly encourage you to install the Vector Simulation and Test Environment extension if you want to use symbols from the environment in your CAPL code. With this extension the Vector CAPL extension can e.g., provide validation and completion of signals and distributed objects (DOs). If the extension is not installed there will be potentially incorrect validation errors in CAPL files that use those symbols.
If you want to write tests in CAPL for our tool test-unit-make we recommend you to install our Vector Test Unit extension. This extension tells the Vector CAPL extension for which files it shall enable the test specific CAPL features. If the extension is not installed there will be potentially incorrect validation errors when you use those features in your test files.
CANoe and CANoe4SW
You can make Visual Studio Code your default editor for CAPL files when working with CANoe and CANoe4SW. In the Options dialog of those tools under the External Programs section you can configure the path to the Visual Studio Code executable as the default CAPL file editor.