java 如何在 Intellij 中启用 CSS 编辑

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

How to enable CSS editing in Intellij

javacssintellij-ideaidecode-completion

提问by Sebastian

I just switched to IntelliJ IDEA because I thought it would be great for developing JavaFX application.

我刚刚切换到 IntelliJ IDEA,因为我认为它非常适合开发 JavaFX 应用程序。

I must be doing something wrong because when I am editing a CSS file, there is no code-completion. When I am trying to create a new CSS file there is no option for CSS files.

我一定是做错了什么,因为当我编辑 CSS 文件时,没有代码完成。当我尝试创建一个新的 CSS 文件时,没有 CSS 文件的选项。

I am using the community version of IntelliJ.

我正在使用 IntelliJ 的社区版本。

I have looked very long for an answer, and it hurts that I have to ask here! I hope someone can help me.

我一直在寻找答案,我不得不在这里问,这让我很痛苦!我希望有一个人可以帮助我。

回答by Stanislav

CSS editor is not supported for community edition, as it said at the language support part of IntelliJ IDEA Editions Comparison

社区版不支持 CSS 编辑器,如IntelliJ IDEA 版本比较的语言支持部分所述

enter image description here

在此处输入图片说明

回答by javasenior

You can get help from community edition pluginspage. For CSS editor, SmarterEditor and Shifter plugins may be helpful.

您可以从社区版插件页面获得帮助。对于 CSS 编辑器,SmarterEditor 和 Shifter 插件可能会有所帮助。

回答by ASH

The short answer is no, at least at the moment. The best solution i for me so far is to open the resources folder in Atom editor and do all UI work there. It's handy because you also run atom live server, and not have to restart the application. Also Preview HTML is another very useful plugin.

简短的回答是否定的,至少目前是这样。到目前为止,对我来说最好的解决方案是在 Atom 编辑器中打开资源文件夹并在那里完成所有 UI 工作。这很方便,因为您还运行 atom live server,而不必重新启动应用程序。预览 HTML 也是另一个非常有用的插件。

回答by saksham_sharma

you can do one thing that just make use of style tag in the html and inside that use all the css that you want to use

你可以做一件事,只在 html 中使用 style 标签,在里面使用你想要使用的所有 css

回答by Kaveri

Yes, the CSS editor is not supported for the community version of Intellij , in my case adding plugins did not work but something that helped me was the answer :-

是的,Intellij 的社区版本不支持 CSS 编辑器,就我而言,添加插件不起作用,但对我有帮助的是答案:-

You just need to create a new "file" rather than a directory, package or Java class and save the file with the .css extension.

您只需要创建一个新的“文件”而不是目录、包或 Java 类,并使用 .css 扩展名保存文件。

that I got from here Need IntelliJ Ultimate Edition to run CSS?

那我从这里需要的IntelliJ终极版运行CSS?