471,317 Members | 1,593 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,317 software developers and data experts.

Code Snippet formatting literal

I would like to create a code snippet for a property that automatically
names the underlying field with standard naming convention:
typing propn string MyProp

would expand to:

private string myProp;
public string MyProp
{
....
}

(as opposed to the standard property snippet, which requires you to
enter the name twice.)
Is there any way to format the literal string in my snippet? Other
snippet tools let you do something similar by using special escape
sequences, something like this:

private $Type$ $l:PropertyName$;
public $Type$ $u:PropertyName$
{
....
}

I noticed there is a "Function" element, but these seem to be hard
coded functions and pretty limited.

Nov 29 '05 #1
0 959

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.