美文网首页
2019-05-27 webstorm设置自定义注释/注解

2019-05-27 webstorm设置自定义注释/注解

作者: 无尽甜蜜里悠悠记忆 | 来源:发表于2019-05-27 16:06 被阅读0次

webstorm被称为最智能的JavaScript IDE,不需要为它做过多的介绍。 

在开发过程中总是需要对代码进行注解: 

import React, { PureComponent } from 'react';

import {

  StyleSheet,

  View,

} from 'react-native';

/**

* @ProjectName:  front-saas-mobile

* @ClassName:    类名名称:

* @Desc:        作用描述:

* @source:      来源:

* @Author:      创始人:${USER}

* @CreateDate:  2021/7/26

* @UpdateUser:  更新者:

* @UpdateDate:  2021/7/26

* @UpdateRemark: 更新内容:

* @Version:      1.0

*/

class ClassName extends PureComponent {

  render() {

    return (

      <View style={styles.container}>

      </View>

    );

  }

}

const styles = StyleSheet.create({

  container: {

    flex: 1,

  },

});

export default ClassName;

第一步:点击webStorm点击preferences....

第二步:Editor /File and Code Templates

第三步:Files /javascript File

重启webStrom,每次建立一个js,就会出现日期时间等等

相关文章

网友评论

      本文标题:2019-05-27 webstorm设置自定义注释/注解

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