WebStorm下ReactNative代码提示设置

ReactNative 代码智能提醒 

(Webstrom live template)

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


StyleSheet属性提示

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

原文地址:https://www.cnblogs.com/wenrisheng/p/6494861.html