To copy C identifiers directly from a devicetree file:
- Select the string in the file.
-
Right-click the string label.
The context menu appears. -
Click Copy C Identifier.
If the selected symbol has a corresponding C macro, like DT_PROP(DT_NODELABEL(adc), label), it is copied to the clipboard. A message shows up in the Status Bar with the copied string.