获得徽章 0
赞了这篇文章
赞了这篇文章
赞了这篇文章
赞了这篇文章
赞了这篇文章
赞了这篇文章
赞了这篇文章
赞了这篇文章
赞了这篇文章
赞了这篇文章
赞了这篇文章
赞了这篇文章
赞了这篇文章
赞了这篇沸点
赞了这篇沸点
vscode 自定义代码补全太方便了!
1、首选项 -> 用户代码片段 ->新建用户代码片段
2、
"create react component": {
"prefix": ",
"body": [
"import React, { PureComponent } from 'react'\nimport styles from \"$0.module.scss\"\n\nexport default class $0 extends PureComponent {\n render() {\n return ( \n <div className={styles.$0}>\n\n </div>\n ) \n } \n}"
],
"description": "import react"
}
1、首选项 -> 用户代码片段 ->新建用户代码片段
2、
"create react component": {
"prefix": ",
"body": [
"import React, { PureComponent } from 'react'\nimport styles from \"$0.module.scss\"\n\nexport default class $0 extends PureComponent {\n render() {\n return ( \n <div className={styles.$0}>\n\n </div>\n ) \n } \n}"
],
"description": "import react"
}
展开
5
15