
A build of the cross reference is sufficient to create the header files. Therefore after adjusting any of the IEC files, you need to build your project to get proper IntelliSense. Additional includes and compiler defines configured in the Automation Studio project are also included in the IntelliSense information.Ĭurrently the extension uses the header files created during an Automation Studio build to provide this information. IntelliSense is also provided for variables, types, functions and function blocks within IEC files (*.var, *.typ, *.fun). This enables to use IntelliSense within C/C++ programs and libraries of Automation Studio projects. The B&R Automation Tools extension provides information to the C/C++ extension specific to an Automation Studio project.
Or run the Create VSIX package task to build an extension installerįeatures Auto completion for C/C++ programs and libraries. Press F5 to run the extension in the development host. Run npm install in the terminal to get all required node.js modules. You will need node.js installed on your computer
For developers / To test the most recent source changes
If you don't want to test the extension in your productive VS Code environment, consider to have a separate portable VS Code instance. From VSIX installerĭo not double click the VSIX file, as it will try to install the extension to the full Visual Studio IDE. You can download the extension in the VS Code marketplace. How to run the extension For non developers From VS Code marketplace
Detecting installed B&R Automation Studio versions. Show errors and warnings of Automation Studio build in source code. Detecting B&R Automation Studio projects in the workspace folders. Auto completion / linting of C/C++ programs and libraries. Features which require such ressources are only available if the ressources are installed on your system. The current development focus lays on C/C++ programs and libraries.ī&R ressources such as executuable binaries etc. The main goal is to offer a good code editing experience for B&R projects within VS Code. This extension does not intend to replace Automation Studio as the main IDE for B&R PLC projects. Therefore B&R Industrial Automation GmbH does not offer any support for this extension.įor any bugs or feature requests please open a Github issue. The B&R Automation Tools extension is NOT a product of B&R Industrial Automation GmbH, it is a privately written and inofficial experiment. B&R Automation Tools is an extension for Visual Studio Code to program and build B&R Automation Studio projects.