Dynamically surround selected text using a template from your clipboard. Perfect for quickly wrapping variables in logging functions, type casts, or custom tags.
Usage
- Copy your desired template to your clipboard, using
$where you want the text to go.- Example:
STR_DATA($)
- Example:
- Highlight the text in your editor.
- Example:
myVariable
- Example:
- Press
Ctrl+Shift+V(Windows/Linux) orCmd+Shift+V(Mac).- Result:
STR_DATA(myVariable)
- Result:
Note: Fully supports multi-cursor selections!
Extension Settings
You can customize the extension through your VS Code settings:
clipboardSurround.placeholder: The string used as the placeholder in your clipboard text. (Default:$)
Enjoy frictionless refactoring!