vscode生成react中js文件模板

北城余情 提交于 2020-02-06 18:21:59

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

}

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

4.

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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!