开发者

Visual Studio 2008 and JavaScript brackets formatting

开发者 https://www.devze.com 2022-12-16 04:06 出处:网络
As we all know MS added JavaScript formatting to VS 20开发者_如何学Python08 SP1. But unfortunately it fails on this code:

As we all know MS added JavaScript formatting to VS 20开发者_如何学Python08 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?


Couldn't find any way to fix it, but it is fixed in VS 2010.

0

精彩评论

暂无评论...
验证码 换一张
取 消