reactjs - 在 VS Code 中使用 MUI 时智能感知非常慢
问题描述
我正在将 MUI 用于反应项目,而智能感知在速度方面给我带来了问题。建议不会在 4-5 秒内出现,我猜 MUI 的庞大库与它有关。有没有办法专门为 MUI 禁用智能感知?如果没有,还有其他方法可以加快智能感知吗?
包.json
"dependencies": {
"@emotion/react": "^11.5.0",
"@emotion/styled": "^11.3.0",
"@mui/icons-material": "^5.0.5",
"@mui/material": "^5.0.6",
"@testing-library/jest-dom": "^5.15.0",
"@testing-library/react": "^11.2.7",
"@testing-library/user-event": "^12.8.3",
"axios": "^0.24.0",
"chart.js": "^3.6.0",
"react": "^17.0.2",
"react-chartjs-2": "^3.3.0",
"react-dom": "^17.0.2",
"react-reveal": "^1.2.2",
"react-router": "^6.0.1",
"react-router-dom": "^6.0.1",
"react-scripts": "4.0.3",
"web-vitals": "^1.1.2"
}
解决方案
也许使用这个扩展很有用。
推荐阅读
- flutter - 如何在 indexedStack Flutter 上打开键盘时隐藏 positionWigdet
- javascript - 错误处理:如何在我的前端接收来自我的后端的错误消息?
- python - 如何在 Python 中通过两种不同的变量类型运行 for 循环?
- python - 如何在 celery 中模拟具有状态的长 i/o 数据库操作?
- ios - Xamarin.Forms - 可以在 iPhone 模拟器上运行,但不能在实际连接的 iPhone 设备上运行
- laravel - 在多个列中使用 Laravel 中的 SUM
- bash - 运行查询后 PSQL 不翻译键盘命令
- python - Selenium python:获取所有
- 所有的文本
- 从一个
- 所有的文本
- ios - 应用新快照时如何避免uicollectionview取消选择所有项目?
- rust - 如何计算字符串中的数字、小写字母、大写字母和特殊字符的数量?