Menu ▾ ▴

#77 allow formatting the whole project

closed-fixed
nobody
None
5
3 hours ago
2019-10-19
No

Can the scope of the formatter be selectable between just the open unit and all the units in the project?

suggested by Ian Branch

Discussion

  • Thomas Mueller

    Thomas Mueller - 2019-10-19

    There is the source code for a stand alone version of the code formatter in svn in

    Projects\StandAlone\CodeFormatter

    which compiles with Delphi 10.1 Berlin.

    It already has a batch mode (formats all files passed to it on the command line) and could be extended to format all files in a project.

     
  • Thomas Mueller

    Thomas Mueller - 3 hours ago

    Implemented in revision #5894: the new editor expert "Code Formatter for Project Units" formats all units of the current project that are in the project's directory or below it. Since revision #5905 a project can also be dropped onto the standalone Code Formatter to format its units.

     

Log in to post a comment.