snippet icon indicating copy to clipboard operation
snippet copied to clipboard

Add the ability to use snippets for wrap selected text

Open Korb opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe. I propose to allow the user to save snippets that can be inserted directly before and immediately after the selected text. Snippets should consist of two halves, inserted before and after the selected text. (An empty value for one of the parts is acceptable.) In addition, it should be acceptable to use fairly long fragments, hundreds of characters, including line breaks.

Describe the solution you'd like Since the context menu of the selected code and sidebars are not available for addition in Visual Studio, the user will have to use the keyboard shortcut Ctrl + Shift + P and the informative naming of each custom snippet, which is specified when saving it.

Describe alternatives you've considered

  1. Inserting a snippet as a single piece of code
  2. Cutting out text that should be inside the snippet code
  3. Inserting the cut text inside the pasted snippet.

Additional context In browsers, add-ons such as “Edit”, “bbCodeWebex” and “bbCodeInsert” successfully perform a similar function.

Korb avatar Jun 12 '24 13:06 Korb