Practical .NET

Working with the Properties Window in Visual Studio's Categories View

If you prefer to keep your Properties Window in Categories View, then here's some shortcuts you might find valuable.

Personally, I keep the list of properties in the Properties Window in alphabetical order. I hear, though, that there are people who prefer to organize the list by categories (I prefer the alphabetical order because there's no way I could ever remember what category any property is in).

If you do work in Category View, you may not be aware that, once you're on a category header, you can collapse it with the left arrow (or the minus sign). Because you probably only use properties in a few categories, you can keep your Property Window short (giving more room to whatever's above it) by collapsing the categories you don't use (you'll also save yourself some scroll up/scroll down time).

In fact, if you keep all your categories collapsed, the Property Window takes up very little space. With the categories collapsed, you can quickly move from one category to another just by pressing the up or down arrows. Once you've got the category you want, pressing the right arrow (or the plus sign) will expand the category. If a category is expanded, your up and down arrows will move you through the properties in the category.

The only reason I know this is because I was watching another programmer who kept all her categories closed all the time. She would press F4 to move to the Properties Window, arrow up or down to the category she wanted, press the right arrow to open the category, and then arrow down to the property she wanted. I was still dragging my mouse over to the window while she was changing the property value. I won't say she made me feel old but I'm told I was grouchy the rest of the day.

Her life would be complete, she said, if there was a keyboard shortcut that would move her back to the category header from any property in the category. As it is, she had to arrow up to the header to use the left arrow to close it.

By the way, if you can't fit all your open categories on the screen, the Page Up and Page Down keys can be useful: On your first press, they move you to the first or last visible item in the window; On subsequent presses, they page through the list of properties. The Home and End keys, as you might expect, move you to the headers for the first and last categories.

About the Author

Peter Vogel is a system architect and principal in PH&V Information Services. PH&V provides full-stack consulting from UX design through object modeling to database design. Peter tweets about his VSM columns with the hashtag #vogelarticles. His blog posts on user experience design can be found at http://blog.learningtree.com/tag/ui/.

comments powered by Disqus

Featured

  • Hands On: New VS Code Insiders Build Creates Web Page from Image in Seconds

    New Vision support with GitHub Copilot in the latest Visual Studio Code Insiders build takes a user-supplied mockup image and creates a web page from it in seconds, handling all the HTML and CSS.

  • Naive Bayes Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the naive Bayes regression technique, where the goal is to predict a single numeric value. Compared to other machine learning regression techniques, naive Bayes regression is usually less accurate, but is simple, easy to implement and customize, works on both large and small datasets, is highly interpretable, and doesn't require tuning any hyperparameters.

  • VS Code Copilot Previews New GPT-4o AI Code Completion Model

    The 4o upgrade includes additional training on more than 275,000 high-quality public repositories in over 30 popular programming languages, said Microsoft-owned GitHub, which created the original "AI pair programmer" years ago.

  • Microsoft's Rust Embrace Continues with Azure SDK Beta

    "Rust's strong type system and ownership model help prevent common programming errors such as null pointer dereferencing and buffer overflows, leading to more secure and stable code."

  • Xcode IDE from Microsoft Archrival Apple Gets Copilot AI

    Just after expanding the reach of its Copilot AI coding assistant to the open-source Eclipse IDE, Microsoft showcased how it's going even further, providing details about a preview version for the Xcode IDE from archrival Apple.

Subscribe on YouTube

Upcoming Training Events