This extension makes it possible to quickly surround selected text with custom tags via Quick Actions suggestion's menu in Visual Studio 2019.
The following tags are included by default:
- Double-quotes
"" - Single-quotes
'' - Parentheses
() - Square brackets
[] - Curly brackets
{} - Markup symbols
<> - Number symbols
## - Asterisks
**
Install from the Open VSIX gallery via the Extensions -> Manage Extensions menu (you might need to add the feed, see this) or download the latest CI build as a VSIX package and install it manually.
- Note that the
releasestab atGitHubwill either be empty or have out-of-date releases.
-
Clicking on the menu item
Hug, brings up theHug's tag managerwhere it is possible to add, delete, and change the position of the tags in theQuick Actionssuggestion's menu (i.e., the yellow lightbulb). -
Enter a left tag and a right tag in the corresponding textboxes and click on the
Addbutton to create a new pair of tags. Duplicate pairs of tags are not allowed and both left/right tags are required.
-
Click on
Delete, or press thedelete/backspacekey, to remove the selected tag(s). -
If the checkbox
Sort by useis checked, the tags will be sorted from most used to least used and will appear so in both the manager and in theQuick Actionssuggestion's menu as shown below. Note that this is a live count that reflects ongoing usage. Thus, entries might swap places too often for certain personality types. -
To remedy this improbable yet potential vexation, it is possible to fix the arrangement of the tags as deemed suitable in order to meliorate the overall wellbeing and, indeed possibly, to ensure the survival itself of one's sanity. This is accomplished by removing the check mark from the checkbox
Sort by use, which will enable the buttonsMove upandMove down. Proceed at this juncture by selecting those tags that require relocation and click away as desired.
- If there are more than 5 tags, they will be placed in the
More Hugs...submenu to avoid overcrowding theQuick Actionsmenu.
It is safe to assume that Hug has some limitations since it has been tested on just a few of machines.


