Question

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";
Was it helpful?

Solution

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

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top