The nRF Connect for VS Code extension features the Devicetree Visual Editor, which extends the devicetree language support with a visual front-end for easier editing of devicetree files.
The editor is made of the following UI areas, described in detail on the following pages:
- Build Contexts - A subset of the configuration from the Application View, filtered based on the usage of the same context file.
- Context Files - A list of devicetree source input files for the devicetree context that is currently active.
- Context Overview - Information about the selected build context, along with information about its board and configuration.
- Nodes - A list of the nodes in a treeview, where you can control their properties.
- Editor tab - Simplified graphical representation of the Devicetree hardware configuration, divided into Peripherals and Pins Views
The following image shows the default placement of the UI elements, with the Peripherals View open (click to enlarge).
Note
The Visual Editor is a tab in Visual Studio Code's Editor. The extension opens one global instance of the Virtual Editor, which shows the contents of the active build context. The active context can change if the nrfconnect.activeAppFollowActiveEditor setting is enabled.
The editor uses some of the basic electronic symbols throughout its GUI and assigns an icon to each node based on keywords in the node name or labels (or both). The node type is always set in the first property of the node.
For information about most common actions that you can do in the editor, see How to work with Devicetree Visual Editor. All changes made in the visual editor are automatically mirrored in the code of the devicetree file.