Skip to content

Hooking into External Tools

Tim edited this page Aug 22, 2013 · 2 revisions

Sublime Text 2

It is pretty easy to use this formatter with Sublime Text. Just add a new build system.

tools > Build System > Add Build System . . .

{
  "cmd": ["/Users/toverly/Code/github/format/bin/format $file_name;/usr/local/bin/subl --command revert"],
    "selector": "java.groovy",
    "shell": true
}

Then you just need to "build" (Command-B) the java or groovy file in this example. It will then format the file.