Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to jump to matching #if/#elif/#endif statements?

In Visual C++ 6.0 (1998 vintage), there is a useful command Ctrl K / Ctrl J to cycle through paired conditional statements, jumping from one to the next:

#if 
...
#elif 
...
#endif

I can't find an equivalent keyboard command to do this in Visual Studio 2010. Anyone know if it's possible?

Note: it is used in an .rc2 file.

like image 870
Pierre Avatar asked Oct 29 '25 09:10

Pierre


1 Answers

This is a command called Edit.GoToBrace and you can change the keyboard shortcut from the Tools. See this In the Visual Studio editor is there a keyboard command to jump to the matching bracket?.

like image 116
Marius Bancila Avatar answered Oct 31 '25 09:10

Marius Bancila



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!