Have you tried using the Code alignment extension for Visual Studio, this will allow you to align on the =
Formatting declaration of constant strings
-
11-10-2022 - |
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";
Soluzione
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