Skip to content

Add the ability to use snippets for wrap selected text #59

@Korb

Description

@Korb

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions