Aptana Studio Standalone JS autoformatting的行为与Eclipse Plugin版本不同

时间:2011-07-26 17:08:17

标签: eclipse aptana autoformatting

出于某种原因,当我使用Aptana的JS编辑器格式化这个dojo-fied javascript块时

var eventInput = new dijit.form.Select({
    name : 'event',
    options : [{
        label : 'Today',
        value : 'event-today',
        selected : true
    }, {
        label : 'Upcoming Birthday',
        value : 'event-birthday1'
    }, {
        label : 'Recent Birthday',
        value : 'event-birthday2'
    }, {
        label : 'Other',
        value : 'event-other'
    }]
}).placeAt('event-group');

标签在自动格式化时会被销毁

var eventInput = new dijit.form.Select({
name : 'event',
options : [{
label : 'Today',
value : 'event-today',
selected : true
}, {
label : 'Upcoming Birthday',
value : 'event-birthday1'
}, {
label : 'Recent Birthday',
value : 'event-birthday2'
}, {
label : 'Other',
value : 'event-other'
}]
}).placeAt('event-group');

类似的块

dojo.create('p', {
    id : 'subject-group'
}, 'form');

正确格式化,保留标签。

Aptana的Eclipse插件版本没有这样做并且格式正确。这是在Aptana Studio 3的普通香草版本上发生的,没有任何插件或修改。有没有人遇到过这个?

1 个答案:

答案 0 :(得分:0)

我相信这已经解决了Aptana Studio 3.0.4。

请参阅http://jira.appcelerator.org/browse/APSTUD-3022

您可以在 - http://wiki.appcelerator.org/display/sgi/Changing+the+Update+Type

中获取夜间版本中的最新内容

干杯