限制加载文件

PhpStorm 使用教程 · 2019-01-09 11:35:19

Phpstorm算是编辑PHP代码一款比较好的工具,功能比较强大。但是若项目比较庞大,用起来就会感到很不流畅。这时我们可以将一些类似var、runtime、node_modules等文件夹限制加载,既能提高速度,又能在phpstorm里面看见。

位置

  1. 打开项目名称所在的文件夹

  2. 显示出隐藏文件(Linux系统Ctrl+H)

  3. 打开 .idea 文件下的.【项目名称】.iml

注意:都是隐藏文件

修改代码

<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
    <content url="file://$MODULE_DIR$">
        <excludeFolder url="file://$MODULE_DIR$/var"/>
        <excludeFolder url="file://$MODULE_DIR$/update"/>
        <excludeFolder url="file://$MODULE_DIR$/setup"/>
    </content>
</component>

根据自己项目改变 excludeFolder 标签内的路径。如图:

点击查看所有 PhpStorm 使用教程 文章: https://codercto.com/courses/l/1.html

查看所有标签

The Starfish and the Spider

The Starfish and the Spider

Ori Brafman、Rod A. Beckstrom / Portfolio Hardcover / 2006-10-05 / USD 24.95

Understanding the amazing force that links some of today's most successful companies If you cut off a spider's leg, it's crippled; if you cut off its head, it dies. But if you cut off a st......一起来看看 《The Starfish and the Spider》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具