如何在 Aptana Studio 中自动缩进 JavaScript 代码? [英] How to automatically indent the JavaScript code in Aptana Studio?

查看:36
本文介绍了如何在 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'

这篇关于如何在 Aptana Studio 中自动缩进 JavaScript 代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆