WebStorm輸入html標籤屬性的時候不自動補全""

在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}/>
相關文章
相關標籤/搜索