Prevent Sublime Text from overwriting .sublime-project

隐身守侯 提交于 2019-12-24 16:14:24

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!