问题
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?
Before
{
"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"
}
}
],
After
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\"",
}
],
回答1:
If it's having a problem with the 'env' tag and resetting it, can you try extra_paths?
{
"settings": {
"extra_paths":
[
"/Users/nyx/test"
]
}
}
来源:https://stackoverflow.com/questions/33643793/prevent-sublime-text-from-overwriting-sublime-project