Skip to content

Instantly share code, notes, and snippets.

@meyu
Last active February 6, 2019 15:55
Show Gist options
  • Save meyu/84d2b117fd77329c97344b8a52ee95df to your computer and use it in GitHub Desktop.
Save meyu/84d2b117fd77329c97344b8a52ee95df to your computer and use it in GitHub Desktop.
備忘技巧:讓 VSCode 的 Emmet 支援 React JSX

於 User Settings 中添加以下內容即可

"emmet.includeLanguages": {
    "javascript": "javascriptreact"
},
"files.associations": { 
    "*.js": "javascriptreact" 
}
  • emmet.includeLanguages 可解決 Emmet 無法使用於 JSX 的問題。
  • files.associations 可解決註解快捷成 // 的語法錯誤。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment