ReactNative 代码智能提醒(webstorm开发工具)

ReactNative 代码智能提醒 

(Webstrom live template)

git clone https://github.com/virtoolswebplayer/ReactNative-LiveTemplate

说明

ReactNative的代码模板,包括:

1.组件名称

2.Api 名称

3.所有StyleSheets属性

4.React组件

安装

方法一

file -> import settings -> ReactNative.jar

方法二

只适用Mac下安装

将ReactNative.xml复制到 ~/Library/Preferences/WebStorm11/templates

重启 WebStrom

使用方法

直接输入组件 或 Api 名称的首字母, 比如想要 View ,只要输入 V自动提示代码里就会看到 View

ReactNative 代码智能提醒(webstorm开发工具)_第1张图片

StyleSheet属性提示

首先 按下 command + J , 然后输入属性名的 首字母

ReactNative 代码智能提醒(webstorm开发工具)_第2张图片
亲测可以,有问题大家提出,谢谢.

你可能感兴趣的:(ReactNative 代码智能提醒(webstorm开发工具))