Copy Snippet for VS Code
Copy Snippet is a Visual Studio Code extension for copying text with line numbers and the file path to the clipboard. Multi-region selections are delimited with ellipses.
Created to help with writing vulnerability/bug reports where it's useful to include focused snippets of source code to explain an issue.
Install through the Visual Studio Code Marketplace: https://marketplace.visualstudio.com/items?itemName=chrisjdavies.copy-snippet
See the following screenshot of the before/after:
The verbatim text copied to the clipboard in this case was:
The default indentation included by Copy Snippet is designed to be handy for numbering lines:
This helps when making references to different parts of the code  in a vulnerability/bug report.
Copy Snippet adds the following commands to the command palette: