Copy Snippet for VS CodeCopy 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. InstallationInstall through the Visual Studio Code Marketplace: https://marketplace.visualstudio.com/items?itemName=chrisjdavies.copy-snippet ExampleSee the following screenshot of the before/after: The verbatim text copied to the clipboard in this case was:
Notice that:
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 [1] in a vulnerability/bug report. CommandsCopy Snippet adds the following commands to the command palette:
Configuration
Thanks
|