24
18

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.

Visual Studio CodeでReactのIntellisense(コード補完)を有効にする

Posted at

セットアップ

  • プロジェクトルートに jsconfig.json ファイルを作成して、以下の内容で保存
{
  "compilerOptions": {
    "target": "es6",
    "allowSyntheticDefaultImports": true
  },
  "exclude": ["node_modules"]
}
  • Typingsをインストールしていない場合に実行
    $ npm install typings -g

  • プロジェクトルートでreactの型定義をインストール
    $ typings install dt~react dt~react-dom --global

  • Visual Studio Codeを再起動

動作確認

  • 適当にファイルを作成して入力補完が効くか確認

24
18
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
24
18

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?