<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Bar.aspx.cs"
MasterPageFile="~\Foo.Master" Inherits="Client.LineOfBusiness.System.Bar" %>
Does anyone know of a Visual Studio Formatter rule that will get ^ to be auto-formatted as:
有没有人知道Visual Studio Formatter规则将^自动格式化为:
<%@ Page Language="C#"
AutoEventWireup="true"
CodeBehind="Bar.aspx.cs"
MasterPageFile="~\Foo.Master"
Inherits="Client.LineOfBusiness.System.Bar" %>
Note that a tag specific rule for the Page tag is less than ideal, but if you know how to craft a tag specific rule to accomplish this same effect, it could be a building block for me to craft an ASP.NET formatting ruleset from.
请注意,页面标记的标记特定规则不太理想,但如果您知道如何制作标记特定规则来实现同样的效果,那么它可能是我构建ASP.NET格式规则集的构建块。
However, I am specifically looking for any way to set a more global "single property per line" rule for the Visual Studio text view subsystem.
但是,我特别想找到为Visual Studio文本视图子系统设置更全局的“每行单一属性”规则的方法。
Free Extensions/Add-Ins that produce the same effect as well as manual walkthroughs are very welcome responses. It drives me absolutely bonkers that the ASP.NET auto-formatting rules do such a crappy job out of the box of aligning aspx for source control.
免费扩展/加载项产生相同的效果以及手动漫游是非常受欢迎的响应。它驱使我绝对疯狂,ASP.NET自动格式化规则从对齐aspx进行源代码控制开箱即用。
Thanks for your help.
谢谢你的帮助。
1 个解决方案
#1
0
I'm afraid that there is no feature in-built in Visual Studio 2012 (not even 2013), that would do this automatically. The only tool that "might" help is ReSharper, but if it is possible, then the option is very hard to find :-) . I'm afraid you will not be able to achieve this easily...
我担心Visual Studio 2012中没有内置功能(甚至不是2013年),它会自动执行此功能。 “可能”帮助的唯一工具是ReSharper,但如果有可能,那么选项很难找到:-)。我担心你无法轻易实现这一目标......
But as far as my experience with ASP.NET goes, I usually didn't pay much attention to this header tag, it might be a little less beautifully formatted, but it is something that can be get used to.
但就我在ASP.NET方面的经验而言,我通常不太注意这个标题标签,它的格式可能不太精美,但它可以习惯。
#1
0
I'm afraid that there is no feature in-built in Visual Studio 2012 (not even 2013), that would do this automatically. The only tool that "might" help is ReSharper, but if it is possible, then the option is very hard to find :-) . I'm afraid you will not be able to achieve this easily...
我担心Visual Studio 2012中没有内置功能(甚至不是2013年),它会自动执行此功能。 “可能”帮助的唯一工具是ReSharper,但如果有可能,那么选项很难找到:-)。我担心你无法轻易实现这一目标......
But as far as my experience with ASP.NET goes, I usually didn't pay much attention to this header tag, it might be a little less beautifully formatted, but it is something that can be get used to.
但就我在ASP.NET方面的经验而言,我通常不太注意这个标题标签,它的格式可能不太精美,但它可以习惯。