Visual Assist build 2068 is available

Visual Assist build 2068 introduces Add Braces and Remove Braces–commands that simplify converting of a statement to a compound statement, and vice versa. The most efficient way to use the feature is to bind a shortcut to VAssistX.BracesToggle, which as its name implies, will add or remove as appropriate. The only nuance to the feature–to avoid breaking code–is that the commands are available only on single statements, even “compound” ones.

bracesRemoveMenu

For those who embraced VA Hashtags, which we introduced in our last build, you will be pleased to know build 2068 allows hiding of hashtags. Open the context menu of the VA Hashtags tool window for an assortment of hiding options, including hiding by tag, file, directory, and project. You can hide from the current solution or all solutions.

hashtagsHide

Finally, several dialogs that support filtering now interpret comma to mean logical “or”. This means “binary, base64” finds files containing “binary” or “base64”. You needn’t search separately.

Learn more about Add/Remove Braces, see what you missed in VA Hashtags, check out the complete list of what’s new, or download the installer.

Quick Refactoring Menu of Visual Assist offers more than refactoring

If you use Visual Assist, you are probably familiar with its Quick Refactoring Menu—available via a hovering icon or the default shortcut (Shift+Alt+Q). But, you might not appreciate how frequently the menu is available. Quick Action Menu is a more apt name.

Availability aside, the Quick Refactoring Menu is an efficient method of tapping into the features of Visual Assist because the menu contains only pertinent actions; it’s always concise. (If you examine the “Refactor (VA)” submenu of the editor’s context menu, you will find all possible actions. The entries enabled in any one scenario are the ones in the Quick Refactoring Menu.)

Available actions in the Quick Refactoring Menu depend on what Visual Assist thinks you might do and where you are: in whitespace, in a symbol, or with a selection.

blogQuickRefactoringMenu

Browse the following list of actions that can appear in the Quick Refactoring Menu. Look for unfamiliar actions and envision scenarios in which they make sense. Try a few and add them to your arsenal. If you can’t fathom when or where an action might be available, click through and find an answer in documentation.

Action Availability
Add Using or #include from a symbol declared externally
Add Member from a class name
Add Similar Member from a member of a class
Change Signature from an existing signature
Create Declaration from an implementation
Create File from whitespace
Create From Usage from an unknown symbol
Create Implementation from a declaration
Create Method Implementations from a class declaration
Document Method from the name of a method
Encapsulate Field from the declaration of a member
Extract Method with a selection
Find Reference from a symbol
Implement Interface / Virtual Methods from a class name
Introduce Variable with a selection or from whitespace
Move Implementation to Source File from a method defined in a header
Move Selection to New File with a selection
Rename from a symbol
Rename File(s) from whitespace