为 VS2010 中的函数生成代码片段
平台:带有 C# 的 ASP.NET Webforms 3.5
我没有看到用于在 C# 中生成函数的代码片段。
我有一个用于类、结构和所有内容的。
是这个功能不存在还是我错过了一些明显的东西或者还有其他方法吗?
例如,我想输入函数,然后按TAB键两次以生成函数的代码片段。
Platform : ASP.NET Webforms 3.5 with C#
I dont see a snippet for generating functions in C#.
I have one for class, struct and all.
Is that feature not there or am i missing something obvious or is there some other way?
For example, I would like to enter function, then press TAB key two times to generate the snippet for function.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
默认情况下没有,但您可以简单地使用 Windows 资源管理器导航到
C:\Program Files\Microsoft Visual Studio 10.0\VC#\Snippets\1033
在其中选择一个子文件夹,复制粘贴代码片段,然后编辑它用记事本做你想做的事。
There's none by default but you can simply navigate with Windows Explorer to
C:\Program Files\Microsoft Visual Studio 10.0\VC#\Snippets\1033
In there select a subfolder, copy paste a snippet, edit it with notepad to do what you want it to do.