2014-02-13 62 views
0

是否可以格式化常量?打開這個常量字符串的格式聲明

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

這個

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

查看此[thread](http:// stac koverflow.com/questions/1286806/resharper-formatting-align-equal-operands)。可能會過時 – Andrei

回答

1

有結束鍵入;自動證明測試您嘗試使用Visual Studio的Code alignment擴展名,這將允許您在=上對齊

+0

非常好,通過「=」降低幾乎正是我所需要的。 –

0

都是有效的代碼,它可能只是你的編輯器,當你在該行