[MonoDevelop] Who ate my code templates ?

Michael Hutchinson m.j.hutchinson at gmail.com
Sat Mar 28 02:26:39 EDT 2009

On Mon, Mar 23, 2009 at 10:24 PM, Mike Krüger <mkrueger at novell.com> wrote:
>> BTW, VS templates have a feature where templates can add references
>> and imports. I'm not sure which is the best approach -- automatic
>> import insertion or automatic namespace shortening.
> How did they do this ? With a function ? I like the automatic namespace
> shortening because it's not changing parts of the file that may not be
> visible. But I think adding a function "Import ("name")" would do this
> job.

It's just a set of XML
elements:http://msdn.microsoft.com/en-us/library/ms171432.aspx and

I think your approach is best regarding imports -- it would be better
to use your approach and also have an "extract using" command.
However, the ability for teplates to add references would be nice in
some cases.

>> Is it possible to add templates in an extension?
> It's a bit tricky, but I think yes :). But it's not really designed for
> this. It would be easier if I make some functions public.

Hm. I'd like to have the ASP.NET addin include ASP.NET and HTML snippets.

Michael Hutchinson

More information about the Monodevelop-list mailing list