Re: how to make snipet ?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Have you checked out the "Promote local variable to parameter" refactoring?

Jarod wrote:
Hey
I would like customize a little existing snippet in VS. Let's say there is snippet prop that works as a property. And it works pretty nice, but I would like it to automatically insert property name based on private field. So if the private field is named _id the property should be ID. I believe it's not much work but it will make my development a little faster. Will it be hard to change this behaviour ?
Jarod
.



Relevant Pages

  • how to make snipet ?
    ... I would like customize a little existing snippet in VS. Let's say there is snippet prop that works as a property. ... but I would like it to automatically insert property name based on private field. ... Jarod ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Code snippet
    ... The code snippet wasn't valid xml. ... refactoring to rename the private field. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Code snippet
    ... But I found out why my snippet looks different that the one in the video. ... refactoring to rename the private field. ... the getter and setter implementations, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Code snippet
    ... I hadn't realized that the snippet was a custom snippet. ... snippet to insert a property with private field; ... the private field, getter, and setter explicitly. ...
    (microsoft.public.dotnet.languages.csharp)
  • multidimensional arrays and tostring
    ... Here is a snippet: ... Is there a way to customize ToString's returning value so that i can get ... With regards, ... Nick ...
    (microsoft.public.dotnet.languages.csharp)