我按照自己喜欢的方式做了一些代码对齐,使用vim - 然后尝试将它粘贴到VS2008中。 Voila,2008决定重新格式化它,除去所有我添加的空白,使一些声明精美对齐。如何让VS2008粘贴代码而不用重新格式化(改变空格)?
有没有办法让VS2008(A)粘贴而不改变空格或(B)如下所示对齐代码?
public int SomePropertyName { get; set; }
public Nullable<string> SomeOtherProperty { get; set; }
public Nullable<int> YetAnotherProperty { get; set; }
其中这样当我把它粘贴到VS2008结束:
public int SomePropertyName { get; set; }
public Nullable<string> SomeOtherProperty { get; set; }
public Nullable<int> YetAnotherProperty { get; set; }
+1,这是更好的解决方案。我会留下我的答案,嗯,参考。 – 2010-07-20 19:49:08
+1,thx今天节省我的时间。 – sisdog 2011-05-10 19:20:29