codeandcloud
codeandcloud

Reputation: 55200

Generate Code Snippet for functions in VS2010

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.

Upvotes: 3

Views: 1256

Answers (1)

Kris van der Mast
Kris van der Mast

Reputation: 16613

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.

Upvotes: 1

Related Questions