发布于 2017-08-21 21:14:12
在~/.ropeproject/config.py中有一个ignored_resources设置,它看起来很有用:
# Specify which files and folders to ignore in the project.
# Changes to ignored resources are not added to the history and
# VCSs. Also they are not returned in `Project.get_files()`.
# Note that ``?`` and ``*`` match all characters but slashes.
# '*.pyc': matches 'test.pyc' and 'pkg/test.pyc'
# 'mod*.pyc': matches 'test/mod1.pyc' but not 'mod/1.pyc'
# '.svn': matches 'pkg/.svn' and all of its children
# 'build/*.o': matches 'build/lib.o' but not 'build/sub/lib.o'
# 'build//*.o': matches 'build/lib.o' and 'build/sub/lib.o'
prefs['ignored_resources'] = ['*.pyc', '*~', '.ropeproject',
'.hg', '.svn', '_svn', '.git', '.tox']发布于 2017-08-19 19:40:49
每个项目都有一个隐藏的子目录.ropeproject/。看看那里的config.py文件。这份文件有很好的记录。
https://stackoverflow.com/questions/45745720
复制相似问题