Suggestion: new macro type (for live templates)

New macro type: GUID. This will allow generate code containing unique GUIDs, e.g.:

[Guid("F88244D3-29E7-4fd6-B131-0EAAE691A04A")]
public interface IMyOleInterface
{
}

2 comments
Comment actions Permalink

Hello Ruslan,

I'm second for that. Could you please post a feature request to our tracker?


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

New macro type: GUID. This will allow generate code containing unique
GUIDs, e.g.:

[Guid("F88244D3-29E7-4fd6-B131-0EAAE691A04A")]
public interface IMyOleInterface
{
}



0
Comment actions Permalink

Ok, have posted.

Another useful thing is to generate subsequent (serial) DispId attributes for class or interface members. E.g.:

public interface IMyOleInterface
{

void Foo();


void AnotherFoo();
}

This can be implemented as a live template, which will generate a method or property with DispId attribute. Also, there can be a command that adds attributes to an existing interface or class.

I know this is quite specific. :)

0

Please sign in to leave a comment.