Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1229] Formatting messes up the javascript file content

GitHub Issuen/a
ResolutionNeeds more info
Resolution Date2014-09-05T06:53:30.000+0000
Affected Version/sn/a
Fix Version/sn/a
LabelsTCSupportTriage, studio3
ReporterDavid He
AssigneeMauro Parra-Miranda


I use shortcut key to format my js and xml files. The problem I found is that formatting works improperly on js file after I formatted xml files. See attached screen dump for reference

Steps to reproduce the problem -

1. Use shortcut key to format a xml file first 2. Open another js file and format it 3. JS file is wrongly formatted....




  1. Mostafizur Rahman 2014-08-10

    Hello, We have tested this issue with our following testing environment. It’s not a Studio bug. Please check your js file code, if there is any error in code then it should be shown in wrong formatted. *TESTING ENVIRONMENT:* Titanium SDK: 3.3.0.GA and 3.2.3.GA Titanium CLI: 3.3.0 OS X Version: 10.9.3 Android API Level: 17 and 19 *STEPS TO REPRODUCE:* 1. Use shortcut key (*shift+command+f* in Mac and *window+shift+f* in windows) to format a xml file first 2. Open another js file and format it 3. JS file is perfectly formatted *TESTING RESULT:* Js file shows their proper format. Thanks.
  2. Mauro Parra-Miranda 2014-08-26

    Hello [~jialhe85@gmail.com]! Do you have any sample that shows the issue? Best Regards!
  3. David He 2014-08-26

    @Mauro after_format.png shows the issue. Unfortunately, I have no sample scripts that do this. Thanks
  4. David He 2014-08-26

    @Mostafizur But, when I exit studio and restart it, formatting the same script works again.... Let me try to get sample scripts that will show the problem Thanks
  5. Mauro Parra-Miranda 2014-09-05

    We can reopen this one if we get code that reproduces the issue.

JSON Source