Trip
Trip

Reputation: 2016

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?

Upvotes: 10

Views: 2759

Answers (1)

MattDMo
MattDMo

Reputation: 102922

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.

Upvotes: 6

Related Questions