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

查看:128
本文介绍了如何在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设置代码格式.如果您没有任何代码选择(特别是在同一个文件中处理多种语言时),它实际上会更好地工作. 您也可以右键单击并选择源"->格式",或在Studio的菜单栏上选择源"->格式". 如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天全站免登陆