1.在扩展应用中安装ES7 React/Redux/GraphQL/React-Native snippet

2.选择文件-->首选项-->设置(快捷键Ctr+,)在搜索框中输入language,选择Emmet,并在Emmet:include language下点击setting.json中编辑,添加

{

    "window.zoomLevel": 1,

    "explorer.confirmDelete": true,

    "emmet.includeLanguages":{

        "javascript":"javascriptreact"

    },

    "typescript.disableAutomaticTypeAcquisition": true

}

vscode生成react中js文件模板

4.rcc+tab键(官网地址https://marketplace.visualstudio.com/items?itemName=dsznajder.es7-react-js-snippets)

4.vscode生成react中js文件模板

3.文件-->首选项-->联机服务设置,然后搜索TypeScript: Disable Automatic Type Acquisition,将此项勾选上,这样就会有提示了

vscode生成react中js文件模板

相关文章:

  • 2021-08-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-27
  • 2021-08-20
  • 2022-12-23
  • 2021-04-20
猜你喜欢
  • 2021-04-07
  • 2022-12-23
  • 2021-04-17
  • 2022-12-23
  • 2021-10-03
相关资源
相似解决方案