在Eclipse中更改css样式表的格式 [英] Change Format of css Stylesheets in Eclipse

查看:1668
本文介绍了在Eclipse中更改css样式表的格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,Eclipse可以在Source-> Format下或通过点击Cntl-Shift-F自动格式化我的css文件。

So Eclipse can auto-format my css files under Source->Format, or by hitting Cntl-Shift-F.

,eclipse格式如下:

When I group selectors for a single rule, eclipse formats it like this:

.planner th,.planner td {
    border: 1px solid black;
}



我真的希望Eclipse在选择器之间添加一个空格以帮助可读性,像这样:

I would really like Eclipse to add a space between the selectors to aide readability, like this:

.planner th, .planner td {
    border: 1px solid black;
}

有没有办法我可以配置Eclipse来做这个?我正在运行Eclipse Indigo。

Is there any way I can configure Eclipse to do this? I'm running Eclipse Indigo.

推荐答案

eptana的Aptana Studio 插件有一个根据你的需要预配置的格式化程序。

The Aptana Studio plugin for eclipse has a formatter that's pre-configured according to your needs.

我推荐使用它,开发过程对Web开发人员(各种各样的漂亮的功能,如内置的Git集成,代码协助常见的JavaScript库,集成的FTP客户端,嵌入式AJAX服务器[Jaxer],漂亮的主题包括,etcetera等etcetera ... )。

I recommend using it regardless as it ease up the development process a great deal for web developers (all sorts of nifty features like built-in Git integration, code assist for common JavaScript libraries, integrated FTP client, embedded AJAX server [Jaxer], nice themes included, etcetera, etcetera...).

参考文献

  • Aptana Studio download page

这篇关于在Eclipse中更改css样式表的格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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