![]()
QuoteWithMarker is an extension that quotes the selected area and adds a custom marker to it.
| Repository | GitHub | Visual Studio Marketplace |
|---|---|---|
| Status |
|---|
Sometimes you have to mark and comment code. Here is the QuoteWithMarker very helpful. This function quotes the selected area and adds a custom marker to it. This way you can still trace the original code. There is also a start and end block for better display when merging.
QuoteWithMarker can be very useful especially for patch files.
Shortcut (quote): Ctrl+Alt+K then Q (Windows/Linux) — see keybindings in the extension.
Open the palette (Ctrl+Shift+P / Cmd+Shift+P) and search for QuoteWithMarker:
quoteWithMarker.codeMarker without opening Settings.${year}, ${month}, ${day}). If the text does not yet contain ${year}, the extension offers a default suffix: a space, hyphen, space, and ${year}.${month}.${day} (same idea as the built-in default). Confirm to save.The setting is written to workspace settings when a folder is open, otherwise to user settings. Using Quote with Marker or Insert marker frame only also refreshes the recent markers list (using the template before date substitution).

Preferences -> Settings -> Extensions -> QuoteWithMarker
| Name | Description | Default Value |
|---|---|---|
| quoteWithMarker.codeMarker | Code Marker used in QuoteWithMarker function. | MyMarker - ${year}.${month}.${day} |
| quoteWithMarker.lineComment | This is a mapping between LanguageID and lineComment characters. | All possible lineComment’s |

To install this extension, you have three options:
Search and install online extension via VSC extensions menu.
Code -> Preferences -> Extensions simply search for QuoteWithMarker to install.
Download latest vsix file and install via extensions menu.
Code -> Preferences -> Extensions -> Views and More Action -> Install from VSIX.
Download archive with the latest release and unpack it to Visual Studio Code extensions folder
$HOME/.vscode/extensions/.
For download see VSCode-QuoteWithMarker
Enjoy!
Your Denny Korsukéwitz 🚀