用webstorm打开前端项目的时候,如果项目里面有nodejs下载的依赖包node_modules,那会发现webstorm打开会非常慢,设置卡死,这时候可以通过设置忽略node_modules这个文件夹来解决,下面介绍配置忽略node_modules文件夹的方式:
在File=》Setting=》Editor=》File Types的Ignore files and folders后面添加以下语句
node_modules;

保存退出后,再打开项目,会发现webstorm不会再加载node_modules文件夹
网友评论