43
24

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

vscodeのjsxでemmet

Last updated at Posted at 2017-09-08

1週間前にatomでemmetする記事を書きました。

しかし、ここ最近vscodeを使っているので、vscodeでemmetする設定を書きます。
vscodeにはデフォルトでemmetが入ってているので、jsx用に設定を追記するだけで済みます。
⌘ + ,で設定ファイルを表示し、以下を追記します。

  "emmet.includeLanguages": {
    "javascript": "javascriptreact",
    "vue-html": "html"
  },
  "emmet.syntaxProfiles": {
    "html": {
      "attr_quotes": "single"
    },
    "jsx": {
      "self_closing_tag": true
    }
  }
43
24
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
43
24

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?