tyhtpg
Last Updated: February 25, 2016
·
1.161K
· emgiezet

Symfony2 project Sublime config

In your project config file just add following lines.

{

    "folders":
    [
        {
            "path": "/your/path/here",
            "folder_exclude_patterns": ["app/cache", "app/logs", "web/js", "web/css", "web/bundles"]
        }
    ]

}

It will defend you against:

  1. Edit assetic generated stylesheets and js files.
  2. Speedup sublime (it will not index all cache files proxies and other symfony cache files

1 Response
Add your response

12689

I prefer to add the cache, logs and web folders in the "binary_file_patterns" instead off the "folder_exclude_patterns". This makes sure you're still seeing the folders in your sidebar, but don't get results when you search the full projects.

{
    "folders":
    [
        {
            "path": "/your/path/here",
            "binary_file_patterns": [
                "app/cache/*", "app/logs/*",
                "web/js/*", "web/css/*", "web/bundles/*"
            ]
        }
    ]
}
over 1 year ago ·