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
![](https://img.haomeiwen.com/i1652523/08d6d088f9b27bd2.png)
StyleSheet属性提示
首先 按下 command + J , 然后输入属性名的 首字母
![](https://img.haomeiwen.com/i1652523/dac8fc05e2de0d3c.png)
网友评论
我为什么没找到ReactNative.jar ,已下载插件 (linux)
2.这个方法 /Library/Preferences/WebStorm11/templates 这个文件夹找不到 怎么办