code-style-java.xml 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. <code_scheme name="Dolphin-Java" version="173">
  2. <option name="OTHER_INDENT_OPTIONS">
  3. <value>
  4. <option name="INDENT_SIZE" value="2" />
  5. <option name="TAB_SIZE" value="2" />
  6. </value>
  7. </option>
  8. <option name="RIGHT_MARGIN" value="100" />
  9. <AndroidXmlCodeStyleSettings>
  10. <option name="USE_CUSTOM_SETTINGS" value="true" />
  11. </AndroidXmlCodeStyleSettings>
  12. <JavaCodeStyleSettings>
  13. <option name="FIELD_NAME_PREFIX" value="m_" />
  14. <option name="STATIC_FIELD_NAME_PREFIX" value="s_" />
  15. <option name="ANNOTATION_PARAMETER_WRAP" value="1" />
  16. <option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="99" />
  17. <option name="NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND" value="99" />
  18. <option name="PACKAGES_TO_USE_IMPORT_ON_DEMAND">
  19. <value />
  20. </option>
  21. <option name="IMPORT_LAYOUT_TABLE">
  22. <value>
  23. <package name="android" withSubpackages="true" static="false" />
  24. <emptyLine />
  25. <package name="androidx" withSubpackages="true" static="false" />
  26. <emptyLine />
  27. <package name="com" withSubpackages="true" static="false" />
  28. <emptyLine />
  29. <package name="junit" withSubpackages="true" static="false" />
  30. <emptyLine />
  31. <package name="net" withSubpackages="true" static="false" />
  32. <emptyLine />
  33. <package name="org" withSubpackages="true" static="false" />
  34. <emptyLine />
  35. <package name="java" withSubpackages="true" static="false" />
  36. <emptyLine />
  37. <package name="javax" withSubpackages="true" static="false" />
  38. <emptyLine />
  39. <package name="" withSubpackages="true" static="false" />
  40. <emptyLine />
  41. <package name="" withSubpackages="true" static="true" />
  42. <emptyLine />
  43. </value>
  44. </option>
  45. <option name="JD_P_AT_EMPTY_LINES" value="false" />
  46. </JavaCodeStyleSettings>
  47. <XML>
  48. <option name="XML_LEGACY_SETTINGS_IMPORTED" value="true" />
  49. </XML>
  50. <codeStyleSettings language="JAVA">
  51. <option name="BRACE_STYLE" value="2" />
  52. <option name="CLASS_BRACE_STYLE" value="2" />
  53. <option name="METHOD_BRACE_STYLE" value="2" />
  54. <option name="LAMBDA_BRACE_STYLE" value="2" />
  55. <option name="ELSE_ON_NEW_LINE" value="true" />
  56. <option name="WHILE_ON_NEW_LINE" value="true" />
  57. <option name="CATCH_ON_NEW_LINE" value="true" />
  58. <option name="FINALLY_ON_NEW_LINE" value="true" />
  59. <option name="ALIGN_MULTILINE_PARAMETERS" value="false" />
  60. <option name="CALL_PARAMETERS_WRAP" value="1" />
  61. <option name="METHOD_PARAMETERS_WRAP" value="1" />
  62. <option name="RESOURCE_LIST_WRAP" value="1" />
  63. <option name="EXTENDS_LIST_WRAP" value="1" />
  64. <option name="THROWS_LIST_WRAP" value="1" />
  65. <option name="EXTENDS_KEYWORD_WRAP" value="1" />
  66. <option name="THROWS_KEYWORD_WRAP" value="1" />
  67. <option name="METHOD_CALL_CHAIN_WRAP" value="1" />
  68. <option name="BINARY_OPERATION_WRAP" value="1" />
  69. <option name="TERNARY_OPERATION_WRAP" value="1" />
  70. <option name="FOR_STATEMENT_WRAP" value="1" />
  71. <option name="ASSIGNMENT_WRAP" value="1" />
  72. <option name="ASSERT_STATEMENT_WRAP" value="1" />
  73. <option name="DOWHILE_BRACE_FORCE" value="3" />
  74. <option name="METHOD_ANNOTATION_WRAP" value="1" />
  75. <option name="CLASS_ANNOTATION_WRAP" value="1" />
  76. <option name="FIELD_ANNOTATION_WRAP" value="1" />
  77. <option name="PARAMETER_ANNOTATION_WRAP" value="1" />
  78. <option name="VARIABLE_ANNOTATION_WRAP" value="1" />
  79. <option name="ENUM_CONSTANTS_WRAP" value="1" />
  80. <indentOptions>
  81. <option name="INDENT_SIZE" value="2" />
  82. <option name="TAB_SIZE" value="2" />
  83. </indentOptions>
  84. </codeStyleSettings>
  85. <codeStyleSettings language="XML">
  86. <option name="FORCE_REARRANGE_MODE" value="1" />
  87. <indentOptions>
  88. <option name="CONTINUATION_INDENT_SIZE" value="4" />
  89. </indentOptions>
  90. <arrangement>
  91. <rules>
  92. <section>
  93. <rule>
  94. <match>
  95. <AND>
  96. <NAME>xmlns:android</NAME>
  97. <XML_NAMESPACE>Namespace:</XML_NAMESPACE>
  98. </AND>
  99. </match>
  100. </rule>
  101. </section>
  102. <section>
  103. <rule>
  104. <match>
  105. <AND>
  106. <NAME>xmlns:.*</NAME>
  107. <XML_NAMESPACE>Namespace:</XML_NAMESPACE>
  108. </AND>
  109. </match>
  110. <order>BY_NAME</order>
  111. </rule>
  112. </section>
  113. <section>
  114. <rule>
  115. <match>
  116. <AND>
  117. <NAME>.*:id</NAME>
  118. <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
  119. </AND>
  120. </match>
  121. </rule>
  122. </section>
  123. <section>
  124. <rule>
  125. <match>
  126. <AND>
  127. <NAME>.*:name</NAME>
  128. <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
  129. </AND>
  130. </match>
  131. </rule>
  132. </section>
  133. <section>
  134. <rule>
  135. <match>
  136. <AND>
  137. <NAME>name</NAME>
  138. <XML_NAMESPACE>^$</XML_NAMESPACE>
  139. </AND>
  140. </match>
  141. </rule>
  142. </section>
  143. <section>
  144. <rule>
  145. <match>
  146. <AND>
  147. <NAME>style</NAME>
  148. <XML_NAMESPACE>^$</XML_NAMESPACE>
  149. </AND>
  150. </match>
  151. </rule>
  152. </section>
  153. <section>
  154. <rule>
  155. <match>
  156. <AND>
  157. <NAME>.*</NAME>
  158. <XML_NAMESPACE>^$</XML_NAMESPACE>
  159. </AND>
  160. </match>
  161. <order>BY_NAME</order>
  162. </rule>
  163. </section>
  164. <section>
  165. <rule>
  166. <match>
  167. <AND>
  168. <NAME>.*:layout_width</NAME>
  169. <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
  170. </AND>
  171. </match>
  172. </rule>
  173. </section>
  174. <section>
  175. <rule>
  176. <match>
  177. <AND>
  178. <NAME>.*:layout_height</NAME>
  179. <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
  180. </AND>
  181. </match>
  182. </rule>
  183. </section>
  184. <section>
  185. <rule>
  186. <match>
  187. <AND>
  188. <NAME>.*:layout_.*</NAME>
  189. <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
  190. </AND>
  191. </match>
  192. <order>BY_NAME</order>
  193. </rule>
  194. </section>
  195. <section>
  196. <rule>
  197. <match>
  198. <AND>
  199. <NAME>.*:width</NAME>
  200. <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
  201. </AND>
  202. </match>
  203. <order>BY_NAME</order>
  204. </rule>
  205. </section>
  206. <section>
  207. <rule>
  208. <match>
  209. <AND>
  210. <NAME>.*:height</NAME>
  211. <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
  212. </AND>
  213. </match>
  214. <order>BY_NAME</order>
  215. </rule>
  216. </section>
  217. <section>
  218. <rule>
  219. <match>
  220. <AND>
  221. <NAME>.*</NAME>
  222. <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
  223. </AND>
  224. </match>
  225. <order>BY_NAME</order>
  226. </rule>
  227. </section>
  228. <section>
  229. <rule>
  230. <match>
  231. <AND>
  232. <NAME>.*</NAME>
  233. <XML_NAMESPACE>.*</XML_NAMESPACE>
  234. </AND>
  235. </match>
  236. <order>BY_NAME</order>
  237. </rule>
  238. </section>
  239. </rules>
  240. </arrangement>
  241. </codeStyleSettings>
  242. </code_scheme>