0

我想知道在 Visual Studio(最好是 2012 年)中是否有一种方法来格式化代码,以便将框选择和多行编辑应用到您的代码变得非常容易。

例如:

转换这块代码的快捷键:

public class Example
{
    public bool IsDefault { get; set; }
    public string Description { get; set; }
    public string Link { get; set; }
    public short Order { get; set; }
    public byte Status { get; set; }
}

变成这样:

public class Example {
    public bool     IsDefault       { get; set; }
    public string   Description     { get; set; }
    public string   Link            { get; set; }
    public short    Order           { get; set; }
    public byte     Status          { get; set; }
}
4

1 回答 1

1

可能您可以使用Visual Studio 2012 的代码对齐扩展

我没有尝试过,但它似乎做你想做的事:按空间特征对齐

于 2013-04-02T15:34:35.860 回答