Skip to content
/ Hug Public

Quickly surround selected text with custom tags via 'Quick Actions' in Visual Studio 2019

License

Notifications You must be signed in to change notification settings

LaraSQP/Hug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hug selected text with custom tags via 'Quick Actions'

Build status License: MIT

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 **

Setup

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 releases tab at GitHub will either be empty or have out-of-date releases.

Getting Started

  • Once installed, the Extensions menu will show the entry hug Hug, as shown below:

extensions

  • Clicking on the menu item hug Hug, brings up the Hug's tag manager where it is possible to add, delete, and change the position of the tags in the Quick Actions suggestion's menu (i.e., the yellow lightbulb).

  • Enter a left tag and a right tag in the corresponding textboxes and click on the Add button to create a new pair of tags. Duplicate pairs of tags are not allowed and both left/right tags are required.

manager

  • Click on Delete, or press the delete/backspace key, to remove the selected tag(s).

  • If the checkbox Sort by use is checked, the tags will be sorted from most used to least used and will appear so in both the manager and in the Quick Actions suggestion'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 buttons Move up and Move down. Proceed at this juncture by selecting those tags that require relocation and click away as desired.

quickactions

  • If there are more than 5 tags, they will be placed in the More Hugs... submenu to avoid overcrowding the Quick Actions menu.

Limitations

It is safe to assume that Hug has some limitations since it has been tested on just a few of machines.

About

Quickly surround selected text with custom tags via 'Quick Actions' in Visual Studio 2019

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages