Is there a possibility to format constants? Turn this

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

into this

public const string SHORT_CONST      = "MyShortConst";
public const string QUITE_LONG_CONST = "MyQuiteLongConst";
有帮助吗?

解决方案

Have you tried using the Code alignment extension for Visual Studio, this will allow you to align on the =

其他提示

Both are valid code, it just may be that your editor automatically justifies the test when you type the ; at the end of the line

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top