Turn off Eclipse formatter for selected code area? [duplicate]
问题 This question already has an answer here: How to turn off the Eclipse code formatter for certain sections of Java code? 12 answers When I ctrl + shift + f up the project code, its doing its job just fine, everywhere. But its messing the CSS, specially those filter parts and adding bunch of spaces. Also how do I specify some portion of Java code to not be formated by that command ? 回答1: To prevent specific portions of Java code from being formatted, go to "Window > Preferences > Java > Code