如何在 aptana 3 上格式化代码? [英] How to format code on aptana 3?

查看:37
本文介绍了如何在 aptana 3 上格式化代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

它在首选项中显示默认代码格式设置,但我看不到任何格式化代码文件的选项.请帮忙.

It is showing default code format settings in preferences but i can not see any option to format a code file.Please help.

我可以通过选择文本和 ctrl+shift+F 来格式化文本.但我想格式化整个源代码或至少一个给定的文件夹.

Edited: I can format text by selecting text and ctrl+shift+F. But i want to format whole source code or at least a given folder.

推荐答案

您可以通过简单的 Ctrl+Shift+F 来格式化代码.如果您没有任何代码选择(尤其是在同一个文件中处理多种语言时),它实际上会更好地工作.您也可以右键单击并选择 Source->Format,或在 Studio 的菜单栏上选择 Source->Format.正如 Ingo 所提到的,尚不支持格式化文件夹.我会尽快添加它:)

You can format the code by a simple Ctrl+Shift+F. It's actually working better if you don't have any code selection (especially when dealing with multiple languages in the same file). You can also right-click and select Source->Format, or select Source->Format on the Studio's menu-bar. As Ingo mentioned, formatting a folder is not yet supported. I'll try to add it asap :)

这篇关于如何在 aptana 3 上格式化代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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