2014-02-13 67 views
0

是否可以格式化常量?打开这个常量字符串的格式声明

public const string SHORT_CONST = "MyShortConst"; 
public const string QUITE_LONG_CONST = "MyQuiteLongConst"; 

这个

public const string SHORT_CONST  = "MyShortConst"; 
public const string QUITE_LONG_CONST = "MyQuiteLongConst"; 
+0

查看此[thread](http:// stac koverflow.com/questions/1286806/resharper-formatting-align-equal-operands)。可能会过时 – Andrei

回答

1

有结束键入;自动证明测试您尝试使用Visual Studio的Code alignment扩展名,这将允许您在=上对齐

+0

非常好,通过“=”降低几乎正是我所需要的。 –

0

都是有效的代码,它可能只是你的编辑器,当你在该行