本文介绍了在 PyCharm 3 中索引排除的目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图从 Pycharm 的项目索引中排除一些目录,因为它们是递归符号链接.我已经排除了目录并使缓存无效并重新启动,但 PyCharm 仍然索引这些排除的目录.它不会在我的搜索结果等中导致重复结果,但索引需要更长的时间.

I am trying to exclude some directories from Pycharm's project index as they are recursive symbolic links. I have excluded the directories and invalidated the caches and restarted but PyCharm still indexes these excluded directories. It does not result in duplicate results in my search results etc. but indexing takes so much longer.

有没有办法将这些目录排除在索引之外?

Is there a way to exclude these directories from being indexed?

推荐答案

如果我是对的:文件 |设置 |项目结构并选择您需要的文件夹,然后单击排除.

if i am right: File | Settings | project structure and select the folders you need and click exlcuded.

来自文档

将文件夹标记为排除的根目录.

排除的根对 PyCharm 不可见.通常,人们希望排除临时的 >build 文件夹、生成的输出、日志和其他项目输出.排除不必要的 >路径是显着提高性能的好方法.

Excluded roots are not visible to PyCharm. Usually, one would like to exclude temporary >build folders, generated output, logs, and other project output. Excluding the unnecessary >paths is a good way to significantly improve performance.

此命令在内容根目录的上下文菜单中重复.

This command is duplicated on the context menu of a content root.

这篇关于在 PyCharm 3 中索引排除的目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 05:25