Your Internet Explorer version is not compatible with our shopping cart system. Please use version 9 or higher to avoid problems with your order(s). Close
I have code formatting rules I’d like to apply to all of thousands of source files in an eclipse workspace. Does anybody know of a technique by which I could reformat text with the rules at Window->Preferences->Java->Code Style->Formatter?
wmstoval,
Do you want to change the existing format of all the files? I am afraid, in that case, you will have to format all the files individually.
If you wish to customize the format rules, you can do so by creating a new profile. Please refer to the following link for steps to customize the profile. https://www.genuitec.com/forums/topic/one-line-comment-formatting-problem/
Let me know if that helps
Thanks for the reply. I do know how to customize the rules but now I want to apply them to thousands of existing source files. To do that manually on each individual file won’t be practical though so I’m looking for an alternative to that.
wmstoval,
You can select all the files from the package explorer, right click and from the context menu select Source > format.
Let me know how that works for you.