Hi Geoffrey,<br><br>I&#39;m an absolute dummy when confronted with Eclipse. Thanks to your detailed recipe, I found all the right buttons, tabs and what not, exactly as described by you, but tabbing  didn&#39;t go away until I established a &quot;project specific setting&quot; for Java -&gt; CodeStyle -&gt; Formatter, giving it a new name (&quot;Drools&quot; - what else), etc. Idiots like me might need an additional hint to that effect.<br>
<br>-W<br><br><br><div class="gmail_quote">On 13 September 2010 14:43, Geoffrey De Smet <span dir="ltr">&lt;<a href="mailto:ge0ffrey.spam@gmail.com">ge0ffrey.spam@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I&#39;ve documented a checklist for configuring eclipse and/or IntelliJ in<br>
the trunk/README.txt file. Feel free to change or expand it as you see fit.<br>
<br>
Please take a moment of your time to check this stuff, so you can avoid<br>
the following headaches:<br>
- tabs VS spaces (not just in java but also in XML): merge problems<br>
- encoding: wierd bugs (especially with translated text that contains ë,<br>
ç or €) + merge problems<br>
- line endings: wierd bugs (with regex find/replaces, ...) + merge problems<br>
- license correctly: legally<br>
<br>
Configuring Eclipse<br>
===================<br>
<br>
Code style<br>
----------<br>
<br>
Correct number of spaces for tabs:<br>
- Open menu &quot;Window&quot;, menu item &quot;Preferences&quot;.<br>
- Open tree item &quot;Java&quot;, tree item &quot;Code Style&quot;, tree item &quot;Formatter&quot;.<br>
-- If you imported the trunk/eclipse-formatter.xml file,<br>
    you don&#39;t need to set it here,<br>
    but you do need to set it for XML anyway!<br>
-- Click button &quot;Edit&quot; of the active profile<br>
-- Tab &quot;Indentation&quot;<br>
--- Combobox &quot;Tab policy&quot;: spaces only<br>
--- Indentation size: 4<br>
--- Tab size: 4<br>
-- If it is a build in profile, you need to change its name with the<br>
textfield on top<br>
- Open tree item &quot;XML&quot;, tree item &quot;XML Files&quot;, tree item &quot;Editor&quot;.<br>
-- Radio button &quot;Indent using space&quot;: on<br>
-- Indentation size: 2<br>
<br>
Correct file encoding (UTF-8 except for properties files) and EOL (unix):<br>
- Open menu &quot;Window&quot;, menu item &quot;Preferences&quot;.<br>
- Open tree item &quot;General&quot;, tree item &quot;Workspace&quot;.<br>
-- Label &quot;Text file encoding&quot;, radiobutton &quot;Other&quot;, combobox &quot;UTF-8&quot;<br>
-- Label &quot;New text file delimiter&quot;, radiobutton &quot;Other&quot;, combobox &quot;Unix&quot;<br>
- Open tree item &quot;XML&quot;, tree item &quot;XML Files&quot;.<br>
-- Combobox &quot;Encoding&quot;: ISO 10646/Unicode(UTF-8)<br>
- Open tree item &quot;CSS&quot;, tree item &quot;CSS Files&quot;.<br>
-- Combobox &quot;Encoding&quot;: ISO 10646/Unicode(UTF-8)<br>
- Open tree item &quot;HTML&quot;, tree item &quot;HTML Files&quot;.<br>
-- Combobox &quot;Encoding&quot;: ISO 10646/Unicode(UTF-8)<br>
- Note: i18n properties files must be in ISO-8859-1 as specified by the<br>
java ResourceBundle contract.<br>
<br>
License header<br>
--------------<br>
<br>
Eclipse JEE Helios currently has no build-in support of license headers,<br>
but you can configure it for new files.<br>
- Open menu &quot;Window&quot;, menu item &quot;Preferences&quot;.<br>
- Open tree item &quot;Java&quot;, tree item &quot;Code Style&quot;, tree item &quot;Copy templates&quot;.<br>
-- Open tree item &quot;Comments&quot;, tree item &quot;Files&quot;.<br>
-- Replace the text area with this:<br>
/*<br>
  * Copyright 2010 JBoss Inc<br>
  *<br>
  * Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);<br>
  * you may not use this file except in compliance with the License.<br>
  * You may obtain a copy of the License at<br>
  *<br>
  *       <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">http://www.apache.org/licenses/LICENSE-2.0</a><br>
  *<br>
  * Unless required by applicable law or agreed to in writing, software<br>
  * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,<br>
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<br>
  * See the License for the specific language governing permissions and<br>
  * limitations under the License.<br>
  */<br>
-- Do not start or end with a newline character<br>
-- Update the year (2010) every year.<br>
<br>
Configuring IntelliJ<br>
====================<br>
<br>
Code style<br>
----------<br>
<br>
Correct number of spaces for tabs:<br>
- Open menu &quot;File&quot;, menu item &quot;Settings&quot;.<br>
- Open tree item &quot;Code Style&quot;, tree item &quot;General&quot;.<br>
- Open tab &quot;Java&quot;<br>
-- Checkbox &quot;Use tab character&quot;: off<br>
-- Textfield &quot;Tab size&quot;: 4<br>
-- Textfield &quot;Indent&quot;: 4<br>
-- Textfield &quot;Continuation indent&quot;: 8<br>
- Open tab &quot;XML&quot;<br>
-- Checkbox &quot;Use tab character&quot;: off<br>
-- Textfield &quot;Tab size&quot;: 2<br>
-- Textfield &quot;Indent&quot;: 2<br>
-- Textfield &quot;Continuation indent&quot;: 4<br>
<br>
Correct file encoding (UTF-8 except for properties files) and EOL (unix):<br>
- Open menu &quot;File&quot;, menu item &quot;Settings&quot;.<br>
- Open tree item &quot;Code Style&quot;, tree item &quot;General&quot;.<br>
-- Combobox &quot;Line seperator (for new files)&quot;: Unix<br>
- Open tree item &quot;File Encodings&quot;.<br>
-- Combobox &quot;IDE Encoding&quot;: &quot;UTF-8&quot;<br>
-- Combobox &quot;Default encoding for properties files&quot;: ISO-8859-1<br>
<br>
License header<br>
--------------<br>
<br>
- Open menu &quot;File&quot;, menu item &quot;Settings&quot;.<br>
- Open tree item &quot;Copyright&quot;, tree item &quot;Copyright profiles&quot;.<br>
- Add Copyright profile<br>
-- Textfield name: JBoss Inc<br>
-- Fill this into the text area:<br>
Copyright $today.year JBoss Inc<br>
<br>
Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);<br>
you may not use this file except in compliance with the License.<br>
You may obtain a copy of the License at<br>
<br>
       <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">http://www.apache.org/licenses/LICENSE-2.0</a><br>
<br>
Unless required by applicable law or agreed to in writing, software<br>
distributed under the License is distributed on an &quot;AS IS&quot; BASIS,<br>
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<br>
See the License for the specific language governing permissions and<br>
limitations under the License.<br>
-- Do not start or end with a newline character<br>
- Open tree item &quot;Copyright&quot;<br>
-- Combobox &quot;Default project copyright&quot;: JBoss Inc<br>
<font color="#888888"><br>
--<br>
With kind regards,<br>
Geoffrey De Smet<br>
<br>
_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
</font></blockquote></div><br>