Skip to content

Instantly share code, notes, and snippets.

@robcowie
Created March 16, 2012 12:36
Show Gist options
  • Star 14 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save robcowie/2049887 to your computer and use it in GitHub Desktop.
Save robcowie/2049887 to your computer and use it in GitHub Desktop.
Example Sublimetext 2 TODO plugin config
{
"color_scheme": "Packages/User/textmate-solarized/Solarized (Dark).tmTheme",
"default_line_ending": "unix",
"dictionary": "Packages/Language - English/en_GB.dic",
"draw_white_space": "selection",
"find_selected_text": true,
"font_face": "menlo",
"font_size": 12,
"highlight_line": true,
"todo":
{
"file_exclude_patterns":[
"*.css", "*.po", "*.mo"
],
"folder_exclude_patterns": [
"static", "vendor", "tmp"
],
"patterns":
{
"BUG": "BUG[\\s]*?:+(?P<bug>.*)$"
},
"case_sensitive": true,
"result_title": "TODO Results"
}
}
@pbanderas
Copy link

Inside the "settings" entry, like in this example to search PHPDoc comments for @todo

{
    "folders":
    [
        {
            "path": "."
        }
    ],
    "settings":
    {
        "detect_indentation": false,
        "tab_size": 4,
        "translate_tabs_to_spaces": true,
        "trim_trailing_white_space_on_save": true,
        "todo": {
            "patterns": {
                "TODO": "\\@todo[\\s]+(?P<todo>.*)$"
            },
            "folder_exclude_patterns": [
                "vendor"
            ]
        }
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment