how to wrap CSS by default


I'm using PhpStorm to edit CSS files and I'd like that the IDE wraps the lines by default.
Also, how do I get code completion for HTML5 and CSS3?


Comment actions Permalink

what I mean is when I have a very long statement, it wraps to the next line:

#nav li a:hover, #nav li a:active, #nav .current_page_item a, #nav .current-cat a, #nav .current-menu-item, #subnav li a:hover, #subnav li a:active, #subnav .current_page_item a, #subnav .current-cat a, #subnav .current-menu-item, #header ul.nav li a:hover, #header ul.nav li a:active, #header ul.nav .current_page_item a, #header ul.nav .current-cat a, #header ul.nav .current-menu-item a, #header li a:hover, #header li a:active, #header .current_page_item a, #header .current-cat a, #header .current-menu-item a {

Comment actions Permalink

I guess you talking about text folding: right-click -> folding -> collapse or put the selector on the text and press Ctrl + (NumPad -).

Comment actions Permalink


Not sure I understood exactly what you mean by wrap, but you may want to check Code Style settings under your Project Settings for this. There is a CSS section and Wrapping and Braces section.

For HTML5 check this blog post



Please sign in to leave a comment.