VS code 安装react-native代码提醒
上GitHub:https://github.com/Microsoft/vscode-react-native
Getting started
- Install VS Code (0.10.10+ is preferred).
- Install the extension in VS Code:
- Type
F1
, thenext install
+Enter
, wait a moment while the list of available extensions is populated- Type
react-native
and select React Native Tools- For more guidance view VS Code Extension Gallery
- If you haven't already, install React Native:
- Run
npm install -g react-native-cli
to install React Native CLI (0.1.10+)- Set up React Native (0.19+) using the steps detailed on the React Native getting started documentation
- Open your React Native project root folder in VS Code.
- Hint: you should create a
.babelrc
withsourceMaps = true
and"presets": [ "react-native" ]
for better source-mapping support. (required if you want TypeScript support)
Install the extension
打开vs code :
1.按下 F1 ,然后输入 install 回车
2.输入 react-native 然后选择 React Native Tools 安装,最后启用。
略懂,略懂....