Search code examples
c++visual-studio-2022text-editor

Visual Studio 2022 shortcut to switch from one end of C scope to another


I think the best way to describe what I'm asking is with a picture. Say I have this C++ code:

enter image description here

Say, if I want to quickly jump from point 1 to point 2 (and vice versa) - is there a shortcut in VS 2022 (C++ code) to do it?

I have read the manual and browsed the internet but I didn't find something that mentions this. I hope this feature exists, because I consider it extremely useful.


Solution

  • Put your cursor just before the {.

    (CTRL)}
    

    Will do what you want.