How to disable the Formatter in Delphi 2010

2019-02-13 09:54发布

问题:

The formatter in Delphi 2010 is really an annoying thing to me. I prefer formatting my code manually. I believe I do it better.

How can I disable it?

NOTE: Answers on why I don't use it in the first place will not be accepted. I need it switched OFF. Nothing more, nothing less.

回答1:

Install DDevExtensions from Andreas Hausladen.
In its last version:
Version 2.0 (2009-09-13)
Added: Embarcadero RAD Studio 2010 support
Added: Editor tab double click action (zoom, super-zoom)
Added: Source Formatter hotkey (Ctrl+D) can be disabled



回答2:

Remove or rename the file Embarcadero.Modeling.Formatter.dll in Delphi's bin directory.



回答3:

There is no need for downloading and installing an extension, not even for deleting a file!

In the Delphi 10 Options head to:

Formatting / Delphi / Profiles and Status (the captions may differ slightly, I have translated them from German)

There is a Checkbox there, titled "Activate Formatting".

Possible downside: This Formatter feature is also deactivated in the Edit menu.