0
我已經下載了VS2010的Productivity Power Tools插件。我正在使用該設置來自動插入右大括號。但是,我似乎無法讓編輯在輸入新聞時正確格式化。可能是最好的證明就是我用的代碼片段問:VS2010:如何設置輸入格式
// I will be using the pipe | to show the carret
// At this point, the closing brace is inserted:
var foo = new Foo{|
// So it becomes this:
var foo = new Foo{|}
// Now pressing enter formats it like this:
var foo = new Foo{
|
}
// BUT THIS IS HOW I WANT THE FORMATTING TO BE:
var foo = new Foo
{
|
}
// It is however formatted correctly on semilcolon:
// So this:
var foo = new Foo{
var bar = 5;|
}
// Becomes this:
var foo = new Foo
{
var bar = 5;
};|
http://stackoverflow.com/questions/388268/how-to-change-visual-studio-auto-format ? – Trefex
是的,我已經通過這些設置無濟於事。我需要找到的是「輸入格式」設置。 – Didaxis