Jump to content
Ian Branch

Delphi's Formatter driving me mad...

Recommended Posts

Hi Team,

Win 11, D11.2.

As best I can tell I have set all the relevant settings for the Formatter and Tabs to 2.

Yet, I still get formatting like the following..

image.thumb.png.8ae4868f4c20ac04e00f8f7685074215.png

Each indent is 8 characters.  I want only 2.

As I said, I have tried the usual places in the Formatter and User Interface but I still can't get it to work as desired... 😞

Is there some obscure place/setting I don't know about??

 

Regards & TIA,

Ian

 

 

 

Share this post


Link to post

Used your .config.  Got the same indent issue.. 😞

image.thumb.png.f8a86b1d0aa6d88ed500f656ddac0407.png

Got to be somewhere else..

I have disabled all my IDE plugins..

 

Ian

 

Edited by Ian Branch

Share this post


Link to post

try the following:

  1. close RAD!
  2. in your Registry, find the "Formatter" keys (for Delphi in special)   // \HKEY_CURRENT_USER\SOFTWARE\Embarcadero\BDS\22.0\Editor
  3. export it for file (backup)
  4. delete it
  5. run RAD and see!  (a new formatter will be created...

if not ok, you can restore your backup file REG...

Share this post


Link to post

Oh Dear.  I thought we had it.  😞

Delete the Editor Reg entry.

Start Delphi.

Format the source, all good.

Exit and re-open Delphi.

Format the source, back to where we started.  😞  Sigh!

Share this post


Link to post

the RAD use this Key in REGISTRY:

-- HLM -> installer default setup  --> this will be copyed to HCU Embarcadero keys....

-- HCU -> for each user in MSWindows

 

try backup Embarcadero in HLM  and HCU  route:

-- try delete the "formatter" keys in two places!!!

Share this post


Link to post

I believe I have cracked it..

image.thumb.png.79dd6a5695df172ad89ccfa7cb4eecdd.png

In the registry Block indent & Tab stops were set to 8, but the equivalent Pascal settings were 2.

I changed the Default to 2 and all is good now.

I don't know if this is a bug in 11.2 and is resolved in 11.3.  We shall see.

 

Regards,

Ian

 

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×