美文网首页IDE
Webstrom 配置ReactNative 代码智能提醒

Webstrom 配置ReactNative 代码智能提醒

作者: yaoshiyou | 来源:发表于2016-05-25 10:05 被阅读190次

    ReactNative 代码智能提醒 (Webstrom live template)

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

    说明
    ReactNative的代码模板,包括:
    组件名称
    Api 名称
    所有StyleSheets属性
    React组件
    安装

    方法一

    file -> import settings -> ReactNative.jar

    方法二

    Mac下安装
    将ReactNative.xml复制到 ~/Library/Preferences/WebStorm11/templates
    重启 WebStrom

    使用方法

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

    StyleSheet属性提示
    首先 按下 command + J , 然后输入属性名的 首字母
    如: 输入 f ,会自动提示 fontSize,fontFamily,fontStyle...等等

    相关文章

      网友评论

        本文标题:Webstrom 配置ReactNative 代码智能提醒

        本文链接:https://www.haomeiwen.com/subject/mfqtdttx.html