Ian Branch 127 Posted February 24, 2023 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.. 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
programmerdelphi2k 237 Posted February 24, 2023 (edited) for me, Delphi's Formatter (with my special setup to right-marging in 200cols ) works good... look MyFormatter_Definitions.config Edited February 24, 2023 by programmerdelphi2k Share this post Link to post
Ian Branch 127 Posted February 24, 2023 (edited) Used your .config. Got the same indent issue.. 😞 Got to be somewhere else.. I have disabled all my IDE plugins.. Ian Edited February 24, 2023 by Ian Branch Share this post Link to post
programmerdelphi2k 237 Posted February 24, 2023 some plugin like CnPack, GExpert in use? try uninstall it or stop! Share this post Link to post
programmerdelphi2k 237 Posted February 24, 2023 very weird... I dont use any plugin.. just pure IDE! Share this post Link to post
programmerdelphi2k 237 Posted February 24, 2023 try the following: close RAD! in your Registry, find the "Formatter" keys (for Delphi in special) // \HKEY_CURRENT_USER\SOFTWARE\Embarcadero\BDS\22.0\Editor export it for file (backup) delete it 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
Ian Branch 127 Posted February 24, 2023 Ah Ha! That got it sorted. Thanks for the assist/guidance. Regards, Ian Share this post Link to post
Ian Branch 127 Posted February 24, 2023 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
programmerdelphi2k 237 Posted February 24, 2023 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
Ian Branch 127 Posted February 24, 2023 I believe I have cracked it.. 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
programmerdelphi2k 237 Posted February 24, 2023 (edited) ok! Edited February 24, 2023 by programmerdelphi2k Share this post Link to post