如何在 Aptana Studio 中自动缩进 JavaScript 代码?
之前我使用Eclipse进行PHP和Java开发,我喜欢命令Ctrl + i
自动缩进代码.
Previously I used Eclipse for PHP and Java development, and I liked the command Ctrl + i
to automatically indent the code.
现在我使用基于 Eclipse 的 Aptana Studio 进行 JavaScript 开发.我想自动缩进我的 JavaScript 代码,但是 Ctrl + i
删除了我的所有代码.在 Aptana Studio 中是否还有其他命令可以自动缩进 JavaScript 代码?
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?
Studio 尚无此功能.您可以在此处添加功能请求:https://aptana.lighthouseapp.com/projects/35272-studio/tickets/new
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 将按照蒂姆的建议格式化整个文件.您可以通过'Window -> Preferences -> Aptana Studio -> Formatter'
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'