Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebStorm - autocomplete React className attribute with quotes instead of object literals

WebStorm autocompletes className= into className={} instead of className="" as it should.

Is there a way to fix or edit this?

like image 914
mls3590712 Avatar asked Jun 15 '18 19:06

mls3590712


1 Answers

please try changing Add for JSX attributes: value in Settings | Editor | Code Style | HTML | Other to either Quotes or Based on type - this should help

like image 184
lena Avatar answered Oct 15 '22 00:10

lena