简而言之,我非常喜欢编写漂亮的代码,这里有一篇很棒的文章 Doom 3 源代码之美我在 Visual Studio 之前一直在使用不同的代码编辑器。我喜欢紧凑的写作风格。我不喜欢几乎是空的白线
public void my function(string s)
{ //almost empty line
string n = domystuff();
if (n=="blanc")
{ //almost empty
mycode("should start a row earlier on { line");
} //..
else
{
ohno.notagain("another two blanc lines above and below else");
Altough.it.compiles("equaly");
myscreen.used = not.optimal;
}
}
如果代码写得更好,那么它很好读,如果有很多白线很好读,那么白线会破坏它。所以我想知道这种自动格式可以在 VS2010 中更改吗?