Visual Studio Tips and tricks: Extend/Reduce selection

  • Gérald Barré

You often need to extend the selection to the parent context. For instance, if your cursor is in a string, you can select the whole string in a single shortcut.

Press Alt+Shift+= to extend the selection and Alt+Shift+- reduce the selection:

You can also select the containing block using ALT+SHIFT+]

This post is part of the series 'Visual Studio Tips and Tricks'. Be sure to check out the rest of the blog posts of the series!

Do you have a question or a suggestion about this post? Contact me!

Follow me:
Enjoy this blog?Buy Me A Coffee💖 Sponsor on GitHub