LoginSignup
3
2

More than 5 years have passed since last update.

Atomでjsxを扱う時に設定すると便利なやつ

Last updated at Posted at 2018-03-12

概要

Atomで .jsxのファイルを開くと、標準だとJavaScriptスニペットとして扱ってくれないのでメモ

インストールするもの

  • react(atomのパッケージ)
  • emmet(jsx記述でもHTML保管してくれる)

手順

1.ターミナルで

apm install emmet

2.Atomのkeymapファイルに

'atom-text-editor[data-grammar="source js jsx"]':
  'tab': 'emmet:expand-abbreviation-with-tab'

Atom -> Keymapを選択するとkeymap.csonというファイルが開く

3.Atomにて、 reactパッケージをインストール

あぁ、最高

3
2
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
3
2