Sublime Forum

Is there a way to add extension specific settings?

#1

I have a few python files that are being used as build system config files. They always have the name BUCK or DEFS in them. I want to add a few settings specific to these file extensions, but have different settings for the rest of my python files. Is there a way to do this?

Everything I look up talks about syntax specific settings (Ex: Python.sublime-settings), which is not quite the same.

The settings I want to set are also specific to the anaconda package. My guess about how they would look is something like this:

{ 
    "extensions" : 
    { 
        "BUCK" : 
        {     
            "pep8_ignore":
            [
                "E309",
                "E251", 
                "E121",
                "E501",
                "E111"
            ]
        },
        "DEFS" : 
        {     
            "pep8_ignore":
            [
                "E309",
                "E251", 
                "E121",
                "E501",
                "E111"
            ]
        }
    }
}
0 Likes