delphidelphi-10.4-sydney

How to ignore formatting a part of the code in Delphi IDE code formatter?


I've found a question from 12 years ago, when there wasn't a way to ignore a part of code in Embarcadero Delphi's code formatter. Has something changed since then, and there is some way to do this now?


Solution

  • At the time of this writing, there is no way to tell the code formatter to ignore a portion of code. The formatter applies to the entire file, unless you have selected a piece of code then it formats just that code instead.