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";
Était-ce utile?

La solution

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

Autres conseils

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top