Own double-tab templates in Visual Studio 2012

后端 未结 2 1200
有刺的猬
有刺的猬 2021-01-22 22:40

So there\'s a trick in Visual Studio, that when you type, for example \'for\', and double-press the Tab key, Visual Studio will create

for (int i = 0; i < len         


        
2条回答
  •  天涯浪人
    2021-01-22 23:15

    You are probably referring to code snippets. The docs explain how to create new snippets and how to add them. It might be easiest to create new ones based on existing snippets that can be found in the folder C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC#\Snippets\1033\Visual C# (depending on your VS version and OS).

提交回复
热议问题