In-Depth
Each edition of Visual Studio comes with hidden preview features that can be unlocked to try out brand-new functionality that hasn’t yet been baked into the IDE, with the purpose being the collection of developer feedback so Microsoft can decide if those features should become standard, or what should be done to improve them first.
I decided to try out a couple of preview features available in the just-released Visual Studio 2022 v17.3 Preview 2, primarily known for being the first edition to come as a native Arm64 application on Windows 11.
The preview features are enabled by clicking Options on the Tools menu and then selecting the Environment > Preview Features page. Alternatively, you can just enter “preview features” into the Visual Studio Search box after pressing Ctrl+Q to move focus to the Search box.
As the above graphic shows, there are a bunch of them, with most already pre-checked for enablement (this is a preview edition of the IDE, after all).
Here’s what I found out trying a couple of preview features having to do with new audio cues and a new search experience.
Audio Cues
Preview 2 actually introduced three new audio cues in response to a June 2021 Develop Community post appropriately titled “More Audio Cues for Visual Studio.” It was authored by Microsoft’s Dante Gagne, who said: “Visual Studio used to have the ability to cause a WAV file to be played when certain events were hit. Today, you can do this with things like a breakpoint interrupting execution during a debugging session or a test run failing. These cues can be configured by using the ‘Change System Sounds’ command in Windows 10. Particularly for screen reader users, it would be useful to have more options to attach audio cues. How about an audio cue when the user arrives on a line with a breakpoint? What about when a find in files operation is finished?”
He solicited suggestions for new audio cues in addition to his breakpoint example, and developers chimed in with suggestions that were actually enacted (navigating to lines with warnings or errors) and some that weren’t (navigating to a line with a lightbulb indicating that Quick Actions are available).
Gagne followed up with an update on his effort with a June 22 blog post titled “Listen Up, Visual Studio has a new feature you need to hear about!”
“Our accessibility journey in Visual Studio has taught us that developers love to customize their experiences to help them be productive,” he said. “Some developers have been telling us that they want to use sound to help them understand what’s happening in their code. A short, simple sound when the caret arrives on a line with an error can quickly help some developers understand where their attention needs to be. Visual Studio Code introduced a handful of these audio cues, and many developers love them. We’re happy to bring them to Visual Studio.”
Now, the list of preview features includes this entry:
It’s hard to describe sounds, but each of the three new audio cues has a different sound, either a single tone for a warning or longer tone sequences for errors and breakpoints. They can actually be heard — and customized — by going to the Sound control panel on Windows 10/11 machines.
You can do that by simply pressing the Windows button and searching for “Change System Sounds,” after which Windows will display the Sound control panel. “You can scroll down in the Program Events box for the ‘Microsoft Visual Studio’ events,” Gagne said. “The new events are ‘Line has Breakpoint,’ ‘Line has Error,’ and ‘Line has Warning.’ The Sound control panel lets you customize each of these sounds to any .wav file you like or disable a specific sound by setting the Sounds field to (None).”
However, I couldn’t choose from the large selection of .wav files available in the Sound control panel to customize the three new audio cues. For each of the three new cues, my only options were the three .wav files already assigned to them: breakpoint.wav, error.wav and warning.wav. Those were also the only three options available for the other program events that are listed under the Microsoft Visual Studio section of the Sound control panel, whereas other program events could be associated with any one of dozens of available .wav files.
I have no idea why, but your mileage may well vary.
All-In-One Search
An All-In-One searching experience for finding symbols in code, IDE features, files and more was introduced in Visual Studio 17.2 Preview 3 as detailed in April 25 Visual Studio Magazine article appropriately titled “Visual Studio 2022 17.2 Preview 3 Intros All-In-One Search.”
These search enhancements come from a April 19 Developer Community post authored by product manager Denizhan Yigitbas, who said: “In Visual Studio 17.2 Preview 3, we released a brand new search experience called the All-In-One Search that empowers developers to search their loaded code and Visual Studio features in the same, light-weight UI.
“The new search experience includes a symbol search for looking up file names, types (including classes, interfaces, enums, and types), and members (methods and properties within a class) as well as a feature search to look up Visual Studio related functionalities. You can enjoy a real-time, instant response search experience with a customizable (size, location, and dismissibility) and fully keyboard friendly UI.”
This functionality is provided by enabling this preview feature:
It merges existing keyboard shortcuts (Ctrl + Q) — for the Search box at the top — and (Ctrl+T) — for the Go to All box, along with (Ctrl+,), which is the same shortcut as (Ctrl+T).
One enabled, pressing Ctrl+Q doesn’t just bring you to the Search box at the top of the IDE as usual
but rather triggers a popup dialog with Code Search and Feature Search tabs, shown here:
With the new experience, the Search box at the top of the IDE also provides dropdown options for Code Search and Feature Search.
The Code Search tab in the popup (or Search dropdown) helps find the exact place where a symbol (class, method, function, variable and so on) is defined, instead of just matching a search text string. It provides three types of results, which can be filtered with buttons for:
“The Feature Search tab in the All-In-One Search experience allows you search for Visual Studio menus, options, components and templates,” said Yigitbas in an April 20 blog post. “For example, I can easily launch the Solution Explorer or even search for Git functionalities all within this search experience. It’s now easier to achieve exactly what you want without the need to navigate through various menus!”
Yigitbas followed up with a May 17 post about enhanced functionality including:
Many Other Options
As noted, there are a bunch more preview features that aren’t pre-checked for enablement.
For just a few examples, you might want to try:
Regarding the latter item, I have no idea why it would be a choice and not already baked in, or at least enabled.
I mean, who wouldn’t want a feature that “Prioritizes memory allocation and system resources for better performance in Visual Studio and other tools?”
About the Author
David Ramel is an editor and writer for Converge360.
Printable Format
Rust rules among programming languages used for WebAssembly projects, but Blazor (C#) is coming on strong.
Trying out some hidden functionality that can be enabled with a few mouse clicks (and maybe an IDE restart).
Stack Overflow’s huge developer survey is out for 2022, showing that Visual Studio Code and Visual Studio have cemented their positions as the two most popular IDEs among more than 70,000 developers who were polled.
After a one-year technical preview, GitHub Copilot, described as an “AI pair programmer” coding assistant, has reached General Availability (GA) status.
Dr. James McCaffrey of Microsoft Research uses a full code program for a step-by-step explanation of this machine learning technique that indicates if patterns are random.
> More Webcasts
Problems? Questions? Feedback? E-mail us.