Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to automatically indent the JavaScript code in Aptana Studio?

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?

like image 322
Jonas Avatar asked May 26 '11 11:05

Jonas


1 Answers

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'

like image 155
sgibly Avatar answered Nov 11 '22 06:11

sgibly