如何添加CSS自动完成eclipse [英] How to add CSS autocomplete to eclipse
问题描述
我正在使用eclipse helios 3.6
,我正在开发 JSF页面(动态Web项目与JSF功能)
,有时我需要将样式添加到xhtml页面中的组件
i am using eclipse helios 3.6 and i am developing JSF pages (Dynamic Web Project With JSF Capabilities) and sometimes i need to add style to a component in the xhtml page
<h:commandLink style="margin-righ:10px">
(不是样式类)
,我想添加CSS自动完成到eclipse
怎么办?请指导,谢谢。
(not a style class) and i want to add CSS autocomplete to eclipse how to do so ? please advise, thanks.
推荐答案
Go:
首选项 - > Web - > CSS文件 - >编辑器 - >内容帮助。
Window -> Preferences -> Web -> CSS files -> Editor -> Content assist.
确保勾选复选框
编辑:确定...然后尝试以下方式:
Ok... Then try with these:
窗口 - >首选项 - >常规 - >内容类型 - >文本 - > JSP - > Add(* .css)
Window -> Preferences -> General -> Content Types -> Text -> JSP -> Add (*.css)
OR
- >首选项 - >常规 - >内容类型 - >文本 - > Java源文件 - >添加(* .css)
Window -> Preferences -> General -> Content Types -> Text -> Java Source File -> Add (*.css)
尝试这些,看看它是否解决了问题
Try with these and see if it solves your problem
编辑2:另请尝试:
窗口 - >首选项 - >常规 - >编辑 - >文件关联 - >添加(* .css)
Window -> Preferences -> General -> Editors -> File Association -> Add (*.css)
编辑3:
窗口 - >首选项 - >常规 - >编辑器 - >文件关联
Window -> Preferences -> General -> Editors -> File Association
确保它看起来像这样,它适用于我自动完成:
make sure it looks like this, it works for me with the autocompletion:
这篇关于如何添加CSS自动完成eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!