File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse 3.0 Formatting

 
Bharat Ruparel
Ranch Hand
Posts: 493
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Eclipse 3.0 to write Java code. Our source is under Rational ClearCase on a Sun Solaris machine. We have a number of developers who use "only " EMacs. Whereas a few like me use Eclipse.
My Eclipse project uses "linked folders" and directly accesses the Java source stored on the Sun machine controlled by ClearCase.
I am having a devil of time resolving the formatting inconsistencies between myself and the EMacs developers. The spacing and formatting of the source code as it appears on their EMacs editors is significanty different than mine under Eclipse. Is there an easy way to assure that at least my code appears to them as formatted as it does to me under Eclipse?
Thanks.
Bharat
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suspect that this difference in formatting is caused by your IDE and their IDE's having different settings for tab width? I don't know whether Emacs allows setting tab width like Eclipse does, though, but it would be weird if it didn't.
 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lasse, I am kind of on your wavelength. Meaning that the Tabs in the EMACs were converted to spaces, where they stay tabs in Eclipse, or vice-a-versa.

If you both have tabs set to 4 spaces, and if one converts tabs to spaces that it converts it to 4 spaces.

You find this kind of formatting issues, even in MS Word.

Mark
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic