alnorth29
alnorth29

Reputation: 3602

Is there any way to have project specific package settings in Sublime Text 2?

I've installed JSMinifier via Sublime Text 2's package manager and I'd like to set the compiler settings for a specific project.

I can find how to set package specific settings, and I know how to do project specific settings, but is there any way to set project specific package settings?

Upvotes: 10

Views: 3415

Answers (2)

Kiwi
Kiwi

Reputation: 114

Try out ProjectSpecific package from PackageControl. I just have added support for project specific package settings.

Assume you want to turn on "console_log" for scope_hunter.sublime-settings for only current project, then (after installing ProjectSpecific), add following lines to your .sublime-project file:

{
    ...
    "settings": {
        "project-specific": {
            "sublime-settings": {
                "scope_hunter": {
                    "console_log": true
                }
            }
        }
    }
}

Upvotes: 7

dennis
dennis

Reputation: 865

Seems it cannot be done natively. The package must be programmed to use project specific files (like i.e. SFTP does), but this could be helpful: http://yuji.wordpress.com/2011/07/13/sublime-text-2-beta-project-specific-settings/

Upvotes: 1

Related Questions