I can't find key binding to expand all possible cases in switch, eg. have switch with enum argument, in Borland C++ i doing this with TAB key while switch code is selected.
I want to do this in Visual Stud开发者_开发知识库io 2010.
Can anyone help me?
It C++ it's not possible to do this. The IDE just doesn't have support for that operation.
In C# you can do this with the switch code snippet:
- Type "switch" in the IDE which will select the snippet in intellisense
- Hit Tab to insert the snippet which will move the cursor inside the parens
- Type the expression to switch on and hit Enter
This will expand out the known cases into the IDE.
I had the same issue and it was duo to resharper installation which does it differently.
after entering the switch and the parameter place the curser in the switch body and then you need to click on the lamp icon on the left or clicking Alt+Enter.
精彩评论