在WebStrom输入属性以后回车,涌现=和””
return (
<Image
source=""
style={styles.page}/>
);
但是在react开辟中或者是支撑jsx语法的开辟中,经常须要运用style={styles.page}
这个的语法,并非输入字符串。如许就有个超等不方便的题目,每次都须要删除””。
封闭””的自动提醒:
在Preferences->Editor->General->Smart Keys->Add quotes for attribute value on typing ‘=’ and attribute completion
能够封闭””的自动补全:
<Image
source=
style={styles.page}/>