Html Aptana 3 中的代码格式

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3099756/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 03:34:31  来源:igfitidea点击:

Code formatting in Aptana 3

htmlformattingaptana

提问by anleon

I'd like to know how can I find HTMLcode formatting in Aptana Studio 3.0 which had shortcut Ctrl+Shift+F in Aptana 2.x?

我想知道如何在 Aptana Studio 3.0 中找到HTML代码格式,它在 Aptana 2.x 中有快捷键 Ctrl+Shift+F?

回答by alleny

Aptana Studio 3 should have formatting for a number of languages now. The shortcut for formatting should be the same as in Studio 2: Ctrl+Shift+F. You should be able to see a list of languages where formatting is supported under Preferences > Aptana > Formatter.

Aptana Studio 3 现在应该有多种语言的格式。格式化的快捷方式应与 Studio 2 中的相同:Ctrl+Shift+F。您应该能够在 Preferences > Aptana > Formatter 下看到支持格式化的语言列表。

回答by Vitim.us

Under the menu 'Source'>'Format' Shortcut is Shift+Cmd+F Under the menu 'Source'>'Format' Shortcut is Shift+Cmd+F

在菜单“源”>“格式”下的快捷方式是 Shift+Cmd+F 在菜单“源”>“格式”下的快捷方式是 Shift+Cmd+F

Or

或者

Right-click the source-code and select 'Source'>'Format' Shortcut is Shift+Cmd+F Right-click the source-code and select 'Source'>'Format' Shortcut is Shift+Cmd+F

右键单击源代码并选择“源代码”>“格式”快捷方式是 Shift+Cmd+F 右键单击源代码并选择“源代码”>“格式”快捷方式是 Shift+Cmd+F

回答by Andrea

In Aptana Studio 3 this feature it's still not available. They replied me in their forums: "It will make a reappearance at some point. We do have HTML Tidy today".

在 Aptana Studio 3 中,此功能仍然不可用。他们在他们的论坛上回答我:“它会在某个时候重新出现。我们今天确实有 HTML Tidy”。

回答by TornadoAli

To update this somewhat for those who may end up here. In Aptana V3.0.9 there is formatting support (via Window -> Preferences -> Aptana Studio -> Formatter) for HTML as the question asks (and also CSS, JavaScript, JSON, PHP, Ruby/ERB, XML).

为那些可能会在这里结束的人更新一些。在 Aptana V3.0.9 中,正如问题所要求的那样,对 HTML(以及 CSS、JavaScript、JSON、PHP、Ruby/ERB、XML)有格式支持(通过 Window -> Preferences -> Aptana Studio -> Formatter)。

This can be applied as before with Ctrl-Shift-F

这可以像以前一样使用 Ctrl-Shift-F

回答by Redlab

Perhaps formatting is not binded to that shortcut anymore? see modifying shortcuts

也许格式不再绑定到该快捷方式?见修改快捷方式