美文网首页
WebStorm 创建自己的模板

WebStorm 创建自己的模板

作者: ChrysAwesome | 来源:发表于2017-09-12 15:10 被阅读84次

    第一步进入File and Code Templates 菜单


    image.png

    第二步 点击+号 ,添加模板


    image.png

    第三步 编辑模板


    image.png

    参数

    image.png WebStorm链接
    /**
     * Created by ${USER} on ${DATE}.
     */
    
    import React from 'react';
    import './${NAME}.less';
    
    class ${NAME} extends React.Component{
        constructor(props){
            super(props)
        }
        
        render(){
            return <div></div>
        }
    }
    
    export default ${NAME}
    

    相关文章

      网友评论

          本文标题:WebStorm 创建自己的模板

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