Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Creating an IDE formatting rule or extending the IDE to allow the same

$
0
0

I am attempting to accomplish the following:

I want all tags with the following formatting...

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Bar.aspx.cs"
MasterPageFile="~\Foo.Master" Inherits="Client.LineOfBusiness.System.Bar" %>

to be auto-formatted as

<%@ Page    Language="C#" 
            AutoEventWireup="true" 
            CodeBehind="Bar.aspx.cs"
            MasterPageFile="~\Foo.Master" 
            Inherits="Client.LineOfBusiness.System.Bar" %>

Note that I am merely using the Page tag for illustrative purposes. What I really am looking to do is to have all properties within markup tags be vertically-tab aligned with a rule forcing each property to be isolated on a single line.

Which method of extending the 2013 IDE would you advise as the most appropriate starting point?  

How does the editor identify aspx and html properties for syntax coloring? I was thinking that if I could write a MEF component part that injected itself into the editor as keywords are being identified as properties for syntax coloring that I could enforce my formatting rule.  

Am I barking up the right tree?


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>