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

查看:113
本文介绍了如何在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将按照Tim的建议格式化整个文件. 您可以通过窗口->首选项-> Aptana Studio->格式器"中的首选项来控制某些格式设置.

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天全站免登陆