首页 > 解决方案 > 在 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"
}

标签: reactjsvisual-studio-codematerial-uiintellisense

解决方案


也许使用这个扩展很有用。


推荐阅读