简体   繁体   中英

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?

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

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 { .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM