为 VS2010 中的函数生成代码片段

发布于 2024-10-07 07:41:26 字数 176 浏览 0 评论 0原文

平台:带有 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不乱于心 2024-10-14 07:41:26

默认情况下没有,但您可以简单地使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文