Switch enum auto-fill
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I was typing a switch with an enum in VS 2013 and all case statements filled out automatically after I finished the switch. Now I can't repeat it. I was not hallucinating, the switch filled out with all enum options, one per case, automatically. Looked through MS docs for VS 2013 and didn't find it. I use quite a few enums and this feature will save me a ton of time if I can find what it is I did to trigger it. Can anyone help? 回答1: Use the code snipped sw(tab)(tab) Hope this helps, 回答2: Notice: This answer applies to performing the switch