本文介绍了防止 Sublime Text 覆盖 .sublime-project的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 Mac OS X 上使用 Anaconda IDE 包运行 Sublime Text 3,看来当我编辑 .sublime-project
文件,由于某些原因,一些更改将在一段时间后删除.
Running Sublime Text 3 with the Anaconda IDE package on Mac OS X, it appears that when I edit the .sublime-project
file, for some reason some of the changes will be removed after some time.
任何想法如何防止这种情况?
Any ideas how to prevent this?
之前
{
"build_systems":
[
{
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"name": "Anaconda Python Builder",
"selector": "source.python",
"shell_cmd": "~/anaconda/envs/test/bin/python -u \"$file\"",
"env": {
"PYTHONPATH": "/Users/nyx/test"
}
}
],
之后
env
设置被删除.不确定是什么触发了这个
env
setting is removed. Not sure what triggers this
{
"build_systems":
[
{
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"name": "Anaconda Python Builder",
"selector": "source.python",
"shell_cmd": "~/anaconda/envs/test/bin/python -u \"$file\"",
}
],
推荐答案
如果 'env' 标签有问题并重置它,你可以试试 extra_paths?
If it's having a problem with the 'env' tag and resetting it, can you try extra_paths?
{
"settings": {
"extra_paths":
[
"/Users/nyx/test"
]
}
}
这篇关于防止 Sublime Text 覆盖 .sublime-project的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!