在WebStrom输入属性以后回车,出现=和""react
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
能够关闭""的自动补全:spa
<Image source= style={styles.page}/>