如何在 Eclipse 中编写 CSS 代码?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4178257/
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 23:09:29  来源:igfitidea点击:

How to code CSS in eclipse?

csseclipsehelios

提问by albetroz

Is there anyway I can develop CSS in eclipse. Im using Eclipse Helios version and I want to be able to create CSS pages in it. But I couldnt find CSS file anywhere in it.

无论如何我可以在eclipse中开发CSS。我使用 Eclipse Helios 版本,我希望能够在其中创建 CSS 页面。但是我在其中的任何地方都找不到 CSS 文件。

回答by Alexis Dufrenoy

You have to install the Web tools for Eclipse. This means: choose the Eclipse Enterprise installation or add the WTP project in your existing Eclipse instance. For the latter, go to Help -> Install new software, select the Eclipse update site and then choose the WTP project to be added.

您必须为 Eclipse 安装 Web 工具。这意味着:选择 Eclipse Enterprise 安装或在现有 Eclipse 实例中添加 WTP 项目。对于后者,转到Help -> Install new software,选择Eclipse 更新站点,然后选择要添加的WTP 项目。

回答by Brian Fernandes

I realize this is a really old post, but for the benefit of others who get here looking for CSS support in Eclipse, I would encourage you to give CodeMix a try for a truly superlative experience.

我意识到这是一个非常古老的帖子,但为了其他人在 Eclipse 中寻找 CSS 支持的利益,我鼓励您尝试使用 CodeMix 以获得真正最高级的体验。

Key features:

主要特点:

  • Supports all the CSS 3 properties, including support for variables
  • In-built Emmet integration reduces typing required
  • Includes a CSS validator
  • Sass and LESS supported too
  • 支持所有 CSS 3 属性,包括对变量的支持
  • 内置 Emmet 集成减少了所需的输入
  • 包括一个 CSS 验证器
  • 也支持 Sass 和 LESS

For more, see: https://www.genuitec.com/tech/css3-in-eclipse/

有关更多信息,请参阅:https: //www.genuitec.com/tech/css3-in-eclipse/

回答by tere?ko

You can always instal Aptana Studio ( 3 beta ) plugin for your eclipse.

你总是可以为你的 Eclipse 安装 Aptana Studio ( 3 beta ) 插件。

回答by kukudas

In the menu file -> new -> other and as type CSS.

在菜单文件 -> 新建 -> 其他并输入 CSS。

回答by Yargo.ar

File > New > File Write the name of your file with the .css extension.

文件 > 新建 > 文件 使用 .css 扩展名写入文件名。

To have colors and a friendly visual I think if you don't have support will need download any plugin. I usually use this and it's good https://marketplace.eclipse.org/content/eclipse-4-tools-lightweight-css-editor

要拥有颜色和友好的视觉效果,我认为如果您没有支持,则需要下载任何插件。我通常使用这个,它很好 https://marketplace.eclipse.org/content/eclipse-4-tools-lightweight-css-editor