wmyywm / eclipse-code-formatter-intellij-plugin

Automatically exported from code.google.com/p/eclipse-code-formatter-intellij-plugin
0 stars 0 forks source link

Differences in formatting for tab-spaces and for comments #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Change eclipse code style settings (tab policy and max line comment length).
2. Format java file in Eclipse and make it copy
3. Reformat this file in IDEA
4. Compare result files (winmerge, for example)

What is the expected output? What do you see instead?
1. Java file has formatted in Eclipse does not contain any tab symbols, but 
reformatted in IDEA contains (should be spaces only).
2. Comments are trimmed to 80 symbols per line in IDEA (120 symbols are 
expected).

What version of the product are you using? On what operating system?
- Windows 7 SP1
- Eclipse IDE for Java Developers, Build id: 20120216-1857
- IDEA Community 11.0.2 #IC-111.277
- IDEA Ultimate 11.0.2 #IC-111.277
- Eclipse Code Formatter 1.3.1.3

Please provide any additional information below.
The major changes in Eclipse default code style settings:
- Tab policy: Spaces only
- Max line width: 120
- Comments: Max line width: 120

Original issue reported on code.google.com by Alexande...@gmail.com on 9 Mar 2012 at 10:56

Attachments:

GoogleCodeExporter commented 9 years ago
are you sure that you are using right settings file?

correct settings file is in the attachment.  how to get it is here 
http://code.google.com/p/eclipse-code-formatter-intellij-plugin/wiki/HowTo

after reformatting zou should see green notification window...

Original comment by vojta.kr...@gmail.com on 9 Mar 2012 at 11:12

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you for your comment. Plugin actually works!

But I was confused with pref file. I am new in Eclipse and I had not read Wiki 
page before using IDEA plugin. So, I exported Eclipse profile as xml file (only 
xml format is available) and I specified this file in IDEA plugin (Eclipse Java 
Formatter preferences file). Conf and xml files contain the same data but in 
different formats, and plugin did not say anything about it.

Original comment by Alexande...@gmail.com on 9 Mar 2012 at 2:14

GoogleCodeExporter commented 9 years ago
good.

common mistake... i will try to make it work for xml too...

Original comment by vojta.kr...@gmail.com on 9 Mar 2012 at 3:31