Visual Studio 2008 and JavaScript brackets formatting

大兔子大兔子 提交于 2019-12-24 00:36:09

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/2064102/visual-studio-2008-and-javascript-brackets-formatting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!