最近在网上找到比较好用的智能代码提示工具(ReactNative-LiveTemplate)网上搜了一下配置方法,如下:
打开终端,复制下面代码
git clone https://github.com/virtoolswebplayer/ReactNative-LiveTemplate
运行完之后,打开WebStorm
方法一
file -> import settings -> ReactNative.jar
方法二
只适用Mac下安装将ReactNative.xml复制到 ~/Library/Preferences/WebStorm11/templates
重启 WebStrom
本人在用了上面的方法配置时并没有找到ReactNative.jar文件,所以用了以下方法来手动配置:
第一步:打开网址,并下载工具包
网址:https://github.com/virtoolswebplayer/ReactNative-LiveTemplate
下载工具包并解压,里面会有ReactNative.jar文件

第二步:复制路径
打开WebStorm file -> import settings 复制默认路径,一般情况下会是 /Users/***/Library/Preferences/WebStorm11/

第三步:前往文件夹
Finder 右键,点击前往文件夹,并把路径粘贴上去,点击前往

第四步:粘贴ReactNative.jar 并进行配置
粘贴后file -> import settings 就能找到 ReactNative.jar 双击即可配置


网友评论