java - Turn off Eclipse formatter for selected code area? - Stack Overflow
To prevent specific portions of Java code from being formatted, go to "Window > Preferences > Java > Code Style > Formatter". Click the "Edit..." button, go to the "Off/On Tags" tab and enable the tags. Afterwards, you can simply embed those tags in Java code to disable the formatting in-between them. If you don't change the default tags, something like this will do :
Read full article from java - Turn off Eclipse formatter for selected code area? - Stack Overflow
No comments:
Post a Comment