vscode-clangd icon indicating copy to clipboard operation
vscode-clangd copied to clipboard

Give nodes in the AST view a "copy subtree as JSON" context menu item

Open HighCommander4 opened this issue 1 year ago • 0 comments

vscode-clangd's "AST view" feature is a convenient way to look at the AST for a fragment of code you're interested in.

Sometimes, you want to share such a fragment with someone else, and to this end it would be convenient if the nodes in the AST view had a context menu item which copies the AST info of that node's subtree in JSON format.

The source data from the server is already in JSON, so this should be fairly straightforward to implement.

HighCommander4 avatar Oct 04 '23 22:10 HighCommander4