Permalink
Browse files

Merge pull request #5 from elkuku/formatters

Add formatters for PHPStorm
  • Loading branch information...
2 parents 7798688 + da480c6 commit e11ce2698214e1236eaf9805eed94453c9c272e6 @LouisLandry LouisLandry committed Oct 9, 2012
Showing with 42 additions and 0 deletions.
  1. +34 −0 IDE/joomla_phpstorm.xml
  2. +8 −0 IDE/readme.md
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<code_scheme name="Joomla">
+ <option name="OTHER_INDENT_OPTIONS">
+ <value>
+ <option name="INDENT_SIZE" value="4" />
+ <option name="CONTINUATION_INDENT_SIZE" value="8" />
+ <option name="TAB_SIZE" value="4" />
+ <option name="USE_TAB_CHARACTER" value="true" />
+ <option name="SMART_TABS" value="false" />
+ <option name="LABEL_INDENT_SIZE" value="0" />
+ <option name="LABEL_INDENT_ABSOLUTE" value="false" />
+ <option name="USE_RELATIVE_INDENTS" value="false" />
+ </value>
+ </option>
+ <PHPCodeStyleSettings>
+ <option name="ALIGN_PHPDOC_PARAM_NAMES" value="true" />
+ <option name="ALIGN_PHPDOC_COMMENTS" value="true" />
+ <option name="PHPDOC_BLANK_LINES_AROUND_PARAMETERS" value="true" />
+ </PHPCodeStyleSettings>
+ <XML>
+ <option name="XML_LEGACY_SETTINGS_IMPORTED" value="true" />
+ </XML>
+ <codeStyleSettings language="PHP">
+ <option name="BRACE_STYLE" value="2" />
+ <option name="ELSE_ON_NEW_LINE" value="true" />
+ <option name="CATCH_ON_NEW_LINE" value="true" />
+ <option name="SPACE_AFTER_TYPE_CAST" value="true" />
+ <indentOptions>
+ <option name="USE_TAB_CHARACTER" value="true" />
+ <option name="SMART_TABS" value="true" />
+ </indentOptions>
+ </codeStyleSettings>
+</code_scheme>
+
View
@@ -0,0 +1,8 @@
+## IDE auto formatters
+
+* Eclipse PDT3
+@todo
+* Zend studio
+@todo
+* PHPStorm
+Copy the file ```joomla_phpstorm.xml``` to ```~/WebIdeXX/config/codestyles/Joomla.xml```

0 comments on commit e11ce26

Please sign in to comment.