From: Joachim B. <jba...@pi...> - 2005-02-01 13:50:12
|
Hi, I recently mailed with Thorsten Klose and it made "click" in my mind. This is what I will do: - set "Displayed Tab Width" in my Eclipse to 8 while the indentation = level=20 stays at 4 (using blank spaces) - update "Programming.html" for containing the explaination of Hiroo and the information from Thorsten that this makes the code style compatible to Emacs in Java mode (which combines 8 blank spaces to 1 tab when possible). Then I think it should be clear to everyone why this options should be chosen. Is that OK? I didn't wanted to start an indentation flame war but I also didn't really understood the reason for the decision for a "displayed tab width" of 8. I think I got it now. ;-) Regards, Joachim Backhaus > -----Urspr=FCngliche Nachricht----- > Von: jsy...@li... > [mailto:jsy...@li...]Im Auftrag von > Joachim Backhaus > Gesendet: Dienstag, 1. Februar 2005 10:30 > An: jsy...@li... > Betreff: [Jsynthlib-devel] AW: Eclipse: Indentation / Displayed tab > width >=20 >=20 > Hi, >=20 > I searched in the old mails and found the following: >=20 > (written by Hiroo) > > The problem is the default "Displayed Tab Width" > > (Preferences->Java->Editor) is set to 4. This is bad choice. Most > > tools (ex. cat on console, CVS browser on JSynthLib=20 > > SourceForge site, ....) > > assumes "Displayed Tab Width" is 8. I see indentation of=20 > some code is > > broken in JSynthLib. This default value may be one of the reason. >=20 > I don't think the setting of the "Displayed tab width" to 8=20 > is a good solution > for that, as it just moves the layout issues to another place. >=20 > Best in my opinion would be the using of blank spaces for tabs > reset "Displayed Tab Width" to 4. >=20 > Regardless of that: The "Displayed tab width" problem should > be included in the "Programming.html" documentation. >=20 > Regards, > Joachim Backhaus >=20 >=20 >=20 >=20 > > -----Urspr=FCngliche Nachricht----- > > Von: Joachim Backhaus=20 > > Gesendet: Dienstag, 1. Februar 2005 10:21 > > An: jsy...@li... > > Betreff: Eclipse: Indentation / Displayed tab width > >=20 > >=20 > > Hi, > >=20 > > I've started a discussion with Hiroo concerning > > the indentation and displayed tab width. > >=20 > > In the "programming.html" the following can > > be found: > >=20 > > "1. Preferences->Java->Editor->Displayed tab width must be=20 > > set to '8'. " > >=20 > > This seems to be the issue. > >=20 > > Can anybody explain why the "Displayed tab width" should be set to 8 > > when indentation level should be set to 4? > >=20 > > I know that in most tools you can set up both differently but > > it usually doesn't make sense. > >=20 > > In this case it leads to the point that there are two kinds=20 > > of JSynthLib > > developers: > > A The one who use Eclipse with the setting above > > B Those who use an editor with the recommended indentation &=20 > > displayed tab width > > setting of 4 (may also be Eclipse in my case). > >=20 > > Of course, the code of Group B developers looks strange for Group A > > and vice versa. > >=20 > > And this leads to the discussion we have now here. > >=20 > > Regards, > > Joachim Backhaus > >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive=20 > Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Jsynthlib-devel mailing list > Jsy...@li... > https://lists.sourceforge.net/lists/listinfo/jsynthlib-devel >=20 |