Tuesday, July 26, 2011

Eclipse GWT pluggin code formating

Hi

I work in an organisation with a specified code format. One of the
rules is no tabs, we use checkstyles to enforce this. I am heavily
involved in GWT projects which requires some minimal use of JSNI
code. When I enable the gwt plugin on the project my code formatter
replaces spaces with tabs, just inside the javascript tags (/*-{ }-
*/). This causes checkstyle errors and I have to manually search and
replace the tabs with spaces to be able to check in my changes. When
I disable the gwt plugin on the project the output of the formatter
returns to normal.

I could not find a setting or any description about how to disable the
auto formatting. Is there a way to disable the formatting of JSNI
code?

Thanks in advanced.

Simon

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment