Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable CSS editing in Intellij

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

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.

I am using the community version of IntelliJ.

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

like image 431
Sebastian Avatar asked Sep 01 '15 18:09

Sebastian


People also ask

Can I use CSS in IntelliJ Community Edition?

The short answer is, IntelliJ Community Edition doesn't support CSS. But a workaround would be to manually attach the CSS to the scene(Or what ever element you want). Here's how to do it. Don't go to the "src" and try to add a stylesheet there.

Can I use IntelliJ for HTML and CSS?

By default, IntelliJ IDEA shows on-the-fly preview only for HTML and CSS code. To enable Live Edit in JavaScript, select the JavaScript, HTML and CSS option.

Does IntelliJ have an HTML editor?

HTML IntelliJ IDEA brings powerful support for HTML that includes syntax and error highlighting, formatting according to the code style, structure validation, code completion, on-the-fly preview during a debugging session (Live Edit) or in the dedicated preview tab in the code editor, and much more.


2 Answers

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

enter image description here

like image 164
Stanislav Avatar answered Oct 16 '22 09:10

Stanislav


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

like image 25
javasenior Avatar answered Oct 16 '22 10:10

javasenior