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

落花浮王杯 提交于 2019-12-10 20:18:24

问题


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.


回答1:


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?.



来源:https://stackoverflow.com/questions/5107766/how-to-jump-to-matching-if-elif-endif-statements

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!