Implement a custom editor in Visual Studio 2008 or 2010

Posted by David Montgomery on Stack Overflow See other posts from Stack Overflow or by David Montgomery
Published on 2010-06-02T21:25:09Z Indexed on 2010/06/02 21:44 UTC
Read the original article Hit count: 262

Hi,

I'm trying to find documentation on how one would go about creating a custom editor plug-in for VS2008 or VS2010.

The file syntax I want to edit is from a tool called TemplateMaschine by Stefan Sarstedt.

An example of the template syntax:

<%@ Assembly Name="System.Xml" %>
<%@ Import NameSpace="System.Xml" %>
<%@ Import NameSpace="System.Collections" %>
<%@ Argument Name="className" Type="string" %>
<%@ Argument Name="attributes" Type="ArrayList" %>

public class <%=className%>
{
<% foreach(string attr in attributes) { %>
public string <%=attr%>;
<% } %>
}

The most important editor features for me would be real-time syntax checking and code completion. If we could get those features, it would save us THOUSANDS of man-hours.

Failing to incorporate a custom editor into Studio, maybe there is some open source text editor project out there that might be easy to extend for my purposes? I've looked a little at Eclipse, but I would think code completion won't be an option (also, my Java stinks). Another possibility might be extending the SharpDevelop text editor component.

Ideas and suggestions welcome!

© Stack Overflow or respective owner

Related posts about visual-studio-2008

Related posts about visual-studio-2010