Cocos Creator 智能提示 for WebStorm
2021-11-16 本文已影响0人
香港记者mo
0.首先下载安装Node.js,否则下面将找不到关于Node.js的设置选项。
1.智能提示设置File->Settings
①设置为最新的ECMAScript版本
![](https://img.haomeiwen.com/i7941382/17d73e555692a113.png)
②Enable Node.js Core library
![](https://img.haomeiwen.com/i7941382/fa3b9751a6f47961.png)
③Enable TypeScript Compiler
![](https://img.haomeiwen.com/i7941382/3451ea503b928ed7.png)
④将Creator的engine加入到外部库中(我自己的cocos的engine在E:\tools\cocos\CocosDashboard\resources\.editors\Creator\2.4.2\resources\engine下)
![](https://img.haomeiwen.com/i7941382/74232241d2708a82.png)
⑤这里的Visibility设置为Project则只为当前项目进行配置;设置为Global则所有项目都进行了配置;不想每个项目都配置的话,则选Global;
![](https://img.haomeiwen.com/i7941382/5356927aaa6d14d3.png)
⑥选择Creator中的engine
![](https://img.haomeiwen.com/i7941382/0317de5d6f7f6a57.png)
⑦全部完成后
![](https://img.haomeiwen.com/i7941382/27f94462e5eb8219.png)
2.隐藏指定文件夹
①对要隐藏的项目文件夹右键(选择之后会变红色)
![](https://img.haomeiwen.com/i7941382/8ff354c81e9cbd56.png)
②将Show Excluded Files前的勾去掉
![](https://img.haomeiwen.com/i7941382/53b7616b815dd8b0.png)
3.隐藏指定类型文件(比如想隐藏meta后缀名的文件)
①Files->Settings->Editor->File Types
②在最后增加*.meta;即可
![](https://img.haomeiwen.com/i7941382/ee6d82fd96ace970.png)
转载于:https://www.cnblogs.com/chevin/p/8001595.html