VScode 在 React(JSX) 啟用 emmet

Hugh's Program learning
Oct 18 · 1 min read

打開設定之後,在輸入區輸入 emmet 就會顯示如下方頁面:


直接在這個 .json 檔案裡面新增設定

"emmet.includeLanguages": {
"javascript": "javascriptreact"
"files.associations": {
"*.js": "javascriptreact"

大功告成。不過 CSS 的部份就還是沒辦法啟用,這要另外在找過了。


Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade