Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

configure css auto completion in phpstorm

Using PHPStorm 3.0:

Is there a way to tame auto-completion in css files? I've disabled everything in "Preferences > Editor > Code Completion", yet I still observe the following behavior:

Say I'd try to type

.list {

}

When typeing ".list" and pressing the space key to add a { bracket, PHPStorm automatically expands .list to

.list-style-type:

; 

This happens with almost every other word that also occurs as a css property even in comments Any ideas on how to stop this without altering PHP/JS auto complete behavior?

like image 847
cjoy Avatar asked Sep 07 '25 01:09

cjoy


2 Answers

It seems you set Space shortcut for live template expanding (Settings | Live templates). If so, this behaviour is by design.

like image 127
ekudel Avatar answered Sep 12 '25 03:09

ekudel


Go to Editor > General > Code Completion.
Uncheck Insert selected variant by typing dot, space, ect.

After doing this, your example of .list { will no longer insert .list-style-type: when pressing space before the {.

like image 26
Cláudio Silva Avatar answered Sep 12 '25 04:09

Cláudio Silva