Copying from a devicetree file

nRF Connect for VS Code

tags
nRF Connect for VS Code

To copy C identifiers directly from a devicetree file:

  1. Select the string in the file.
  2. Right-click the string label.
    The context menu appears.

    Copy C Identifier

  3. 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.

Copied identifier