Community
Participate
Working Groups
Create new VJET project Create new JS file with this content /** * Indentation */ function foo(data) { var abc = 1; var xyz = 'one'; switch (data) { case 0: abc = 0; xyz = 'zero'; break; default: abc = -1; xyz = 'unknown'; } if (document.form1.year.value > 2000) { abc += 27; } else if (document.form1.year.value > 1900) { abc += 19; } else { abc = 0; } } Control + shift + F content changes to this: /** * Indentation */ function foo(data){ var abc=1; var xyz='one'; switch(data){ case 0: abc=0; xyz='zero'; break; default: abc=-1; xyz='unknown'; } if(document.form1.year.value>2000){ abc+=27; }else if(document.form1.year.value>1900){ abc+=19; }else{ abc=0; } } Expected this from Eclipse [built in] profile /** * Indentation */ function foo(data) { var abc = 1; var xyz = 'one'; switch (data) { case 0: abc = 0; xyz = 'zero'; break; default: abc = -1; xyz = 'unknown'; } if (document.form1.year.value > 2000) { abc += 27; } else if (document.form1.year.value > 1900) { abc += 19; } else { abc = 0; } }
Cannot reproduce this bug. Case 1: existing workspace + create vjet project + create js file Case 2: clean workspace + vjet perspective + create vjet project + create js file Case 3: clean workspace + resource perspective + create vjet project + create js file Could you please try to reproduce it again or give more detail on how to reproduce it?
Also,there are two "format" menus in the VJET editor context menu.
Created attachment 226318 [details] Fix this bug. Fixed. It is caused by this.tab_char and this.tab_size
Jack fixed this I merged it into main