格式化常量字符串的声明

时间:2014-02-13 12:10:54

标签: c# refactoring resharper

是否有可能格式化常量?转这个

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";

2 个答案:

答案 0 :(得分:1)

您是否尝试过使用Visual Studio的Code alignment扩展程序,这样您就可以对齐=

答案 1 :(得分:0)

两者都是有效的代码,当你在行尾输入;时,你的编辑器可能会自动验证测试的合理性

相关问题