Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Sublime 3, can I use project settings to disable packages?

EDIT: Question is about Sublime 3. Edited title for clarity.

I have a couple of projects that require me to connect through SSH. This is fine except that SublimeLinter-php and GitGutter execute extremely slowly over SSH.

Obviously, I can manually enable/disable as needed; but that appears to require restarting Sublime every time I switch between a local project and an SSH project.

I'm probably dreaming here, but ideally, there would be a way for me to enable/disable packages on a project-by-project basis, but I have not found any way to do this.

Is this possible or not? If possible, how do I do it?

like image 239
Trip Avatar asked Mar 26 '14 19:03

Trip


1 Answers

In a .sublime-project file there are three main keys: folders, settings, and build systems. You should be able to add a "settings" section like so (remember that the files are JSON-formatted):

{
    "folders":
    [
        {
            "follow_symlinks": true,
            "path": "/path/to/my/folder"
        }
    ],
    "settings":
    {
        "ignored_packages": 
        [
            "Vintage",
            "SublimeLinter-php",
            "GitGutter"
        ]
    }
}

You should be able to add any item found in Preferences -> Settings-Default (or Settings-User, for that matter) to the "settings" array. For complete documentation on .sublime-project files, check out the Sublime website.

like image 54
MattDMo Avatar answered Sep 21 '22 23:09

MattDMo