解決webstorm開發vue項目時經常卡死,代碼提示功能時好時壞的問題
- 原因:webstorm開發vue項目時經常卡死,代碼提示功能時好時壞,是因爲
node_modules
文件夾裏面的文件數量太多了,webstorm 索引不過來。解決方法是使webstorm 忽略node_modules
文件夾的索引 - 解決方法:在 settings—>editor—>File Types 中的 ignore files and floders中添加
node_modules
即可 - 參考下面的圖文解決