Domanda

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";
È stato utile?

Soluzione

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

Altri suggerimenti

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top