facebook

Eclipse global reformat?

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #311175 Reply

    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?

    #311182 Reply

    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

    #311187 Reply

    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.

    #311210 Reply

    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.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Eclipse global reformat?

You must be logged in to post in the forum log in