Skip to content

Instantly share code, notes, and snippets.

@creynders
Created March 17, 2015 10:26
Show Gist options
  • Save creynders/fe525c7dccd607b8e339 to your computer and use it in GitHub Desktop.
Save creynders/fe525c7dccd607b8e339 to your computer and use it in GitHub Desktop.
Keystone code style scheme for Webstorm/PHPStorm
<!-- save to
Mac OS X: ~/Library/Preferences/{WebIdeXX}/codestyles
-->
<code_scheme name="keystone">
<JSCodeStyleSettings>
<option name="INDENT_PACKAGE_CHILDREN" value="1" />
<option name="SPACE_BEFORE_TYPE_COLON" value="true" />
<option name="SPACE_AFTER_TYPE_COLON" value="true" />
<option name="ALIGN_OBJECT_PROPERTIES" value="2" />
<option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
<option name="OBJECT_LITERAL_WRAP" value="0" />
</JSCodeStyleSettings>
<XML>
<option name="XML_LEGACY_SETTINGS_IMPORTED" value="true" />
</XML>
<codeStyleSettings language="JavaScript">
<option name="KEEP_FIRST_COLUMN_COMMENT" value="false" />
<option name="KEEP_BLANK_LINES_IN_CODE" value="1" />
<option name="ALIGN_MULTILINE_TERNARY_OPERATION" value="true" />
<option name="ALIGN_MULTILINE_ARRAY_INITIALIZER_EXPRESSION" value="true" />
<option name="DOWHILE_BRACE_FORCE" value="3" />
<option name="WHILE_BRACE_FORCE" value="3" />
<option name="FOR_BRACE_FORCE" value="3" />
<indentOptions>
<option name="USE_TAB_CHARACTER" value="true" />
</indentOptions>
</codeStyleSettings>
</code_scheme>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment