Visual Studio 2008 and JavaScript brackets formatting
Posted
by HeavyWave
on Stack Overflow
See other posts from Stack Overflow
or by HeavyWave
Published on 2010-01-14T12:49:08Z
Indexed on
2010/03/25
2:33 UTC
Read the original article
Hit count: 741
visual-studio-2008
|visual-studio-2010
As we all know MS added JavaScript formatting to VS 2008 SP1. But unfortunately it fails on this code:
var viewport = new Ext.Viewport({
layout: "border",
items: [{
region: "center",
contentEl: "center"
}, {
region: "south",
contentEl: "south"
}, {
region: "west",
contentEl: "west"
}] // This bracket is misplaced
});
viewport.render();
Is there any way to fix it? Is it fixed in VS 2010?
© Stack Overflow or respective owner