Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

sublimetext2

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?

like image 892
alnorth29 Avatar asked May 15 '12 11:05

alnorth29


People also ask

How do you change preferences in Sublime Text?

Changing Preferences. Open the Sublime Text default settings file: Mac OS X: Sublime Text 2 > Preferences > Settings - Default. Windows: Preferences > Settings - Default. Linux: Preferences > Settings - Default.

Where are Sublime Text settings stored?

In general, you should place your settings in Packages/User/Preferences. sublime-settings. If you want to specify settings for a certain file type, for example, Python, you should place them in Packages/User/Python. sublime-settings.

What is the difference between Sublime Text 2 and 3?

Here's why – Sublime Text 3 brings some major benefits compared to version 2: Most plugins have caught up and are built on top of ST3 now. If you check in Package Control, there are more ST3 packages today than there are ST2 packages. Sublime Text 2 development has stopped while Sublime Text 3 is in active development.


1 Answers

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
                }
            }
        }
    }
}
like image 52
Kiwi Avatar answered Nov 09 '22 00:11

Kiwi