by smd » Thu Sep 03, 2015 3:52 pm
Well apparently Embarcadero is as attentive to details as ever (sarcasm)
By going into Tools->Options->Formatter->Profile_and_Status
you can save to an XML file all the current formatting options. Then agonizingly go through the file with a text editor changing options to how you like them. Then of course you have to load the options at run time. Still playing with it.
I do not understand how Embarcadero could miss this. Well given their track record for messing things up, I guess I can understand, just do not get why they have such poor project management given how many people use their product.
ADDED:
OK, if you edit the XML file, you have to reload it while your project is open then save everything. The settings are saved and loaded the next time you start up XE10. But edits made before launching are not loaded for some reason, so you need to go into the tools options and reload the new settings.
ADDED:
The attached file is my formatter settings. I only tweaked the CPP settings. All the Delphi settings are default.
Basically I like a 2 space indent, braces on their own line, and a couple small tweaks. If you don't like it you can always reload the defaults or tweak the file to your liking.
- Attachments
-
Formatter_MyFormat.zip
- IDE Code Formatter Config File
- (2.76 KiB) Downloaded 435 times
-----------------------------
Scott