for a mistake i've made eclipse v. 3.4.2 formatting my sourcecode on a single class file. That's really confusing, how can i restore my own original text format?
Unnecessary Code Select an application where you want to apply the newly created profile (JBT). Right-click on it and go to Source >> Clean Up. A window will appear as below. Select Project and Profile and click “Finish”. Now you know how to clean up your code with the help of Eclipse.
Eclipse 3.6 allows you to turn off formatting by placing a special comment, like // @formatter:off ... // @formatter:on. The on/off features have to be turned "on" in Eclipse preferences: Java > Code Style > Formatter . Click on Edit , Off/On Tags , enable Enable Off/On tags .
The simplest approach is probably to use Eclipse's Local History. On the context menu for the file, select "Restore from local history." If it's not in the local history, you may need to go back to the previous version in source control... (I assume you're using source control. If you're not, I strongly urge you to do so, right away.)
Of course, another option if you've still got the file open is just to press Ctrl-Z to undo actions - keep doing that until the formatting goes away :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With