Skip to content

Instantly share code, notes, and snippets.

@judwhite
Last active March 31, 2016 11:57
Show Gist options
  • Save judwhite/ef2cae8413c0ad188a526ac516b434b3 to your computer and use it in GitHub Desktop.
Save judwhite/ef2cae8413c0ad188a526ac516b434b3 to your computer and use it in GitHub Desktop.
IntelliJ - gofmt on save, except autosave
<?xml version="1.0" encoding="UTF-8"?>
<TaskOptions>
<TaskOptions>
<option name="arguments" value="-w $FilePath$" />
<option name="checkSyntaxErrors" value="true" />
<option name="description" value="Run gofmt after saving go file" />
<option name="exitCodeBehavior" value="ERROR" />
<option name="fileExtension" value="go" />
<option name="immediateSync" value="false" />
<option name="name" value="Gofmt" />
<option name="output" value="" />
<option name="outputFilters">
<array />
</option>
<option name="outputFromStdout" value="false" />
<option name="program" value="{{YOUR-PATH-HERE}}/bin/gofmt" />
<option name="scopeName" value="Project Files" />
<option name="trackOnlyRoot" value="false" />
<option name="workingDir" value="" />
<envs />
</TaskOptions>
</TaskOptions>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment