How to automatically indent the JavaScript code in Aptana Studio?

Jonas picture Jonas · May 26, 2011 · Viewed 21k times · Source

Previously I used Eclipse for PHP and Java development, and I liked the command Ctrl + i to automatically indent the code.

Now am I using Aptana Studio that is based on Eclipse, for JavaScript development. I would like to automatically indent my JavaScript code, but Ctrl + i deletes all my code. Is there any other command that automatically indent JavaScript code in Aptana Studio?

Answer

sgibly picture sgibly · May 26, 2011

The Studio does not have this feature yet. You can add a feature request here: https://aptana.lighthouseapp.com/projects/35272-studio/tickets/new

Ctrl+Shift+F will format your entire file, as Tim suggested. You can control some of the formatter settings through the preferences at 'Window -> Preferences -> Aptana Studio -> Formatter'