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.
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
Remove or rename the file Embarcadero.Modeling.Formatter.dll in Delphi's bin directory.
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.
Related
I want to disable the dialog (shown below, titled "Processing File") appears each time I compile or build my project, but I failed to find which IDE plugins it's from since I use a lot of productivity plugins (also shown below).
Anybody has any hint :P
The List of IDE plugins I use is shown below - PS, I believe the DKLang is not shown there.
As hinted by Andy Vines the Delphi G+ group user, that's because I somehow have enabled the 'Set Component Properties' expert included in the GExperts IDE plugin.
It searches for and auto-close active database connections, datasets, etc.
Disabling it fixed the problem. Thanks.
Is there any way that I can have the Delphi IDE auto-save all opened projects every X minutes, or just before compilatilation? I looked in XE2 and in Gexperts and didn't see anything, but that means nothing as I am thick.
Check the checkbox in Tools->Options->Environment Options->Autosave->Editor Files. It will save the files on compile/run.
(If you haven't already, I'd also check Tools->Options->Editor Options->Create backup files, and set the File backup limit to 10 or more. This enables a sort of version control using the .history folder for each project (which you can access using the History tab at the bottom of the Code Editor.)
Andy's DDevExtensions has a "Compile Backup" option that automatically saves a copy of modified units to a .cbk file (e.g. Example.pas.cbk).
In Delphi Rio
Tools>Options>IDE>Saving and Desktop
CnPack seems to have such function since version 0.8.2
It is at CnPack - IDE enhancement Settings - Editor Enhancements - Tabset / Button - Auto Save All in my version 1.1.4.924 on the XE7:
How to get back integrated source code formatting back to Delphi? I suppose I disabled some package or something and there is no more an option in Edit menu to format source. What package should I get back installed to have it on again?
Install Modeling - to have code formatter
Uninstall Modeling - to remove it
See question How to disable the Formatter in Delphi 2010. More specifically How to disable the Formatter in Delphi 2010 and re-install the dll mentioned in that answer
In Delphi 2010 a new Find bar has been added beneath the source editor.
Though I sounds like a good idea I find it prettry anoying when F3 should be pressed multiple times for finding next matches. It works from time to time for me.
How I can switch it off and use the old search fnctionality?
It is not possible to switch back to the old modal behavior. That code is gone. If you’d like to see all the results in a list, you can use “Find in Files” and choose either “open files” or “files in project” to keep the number of files being searched to a minimum
Depending on how reliant you are on the latest versions of the VCL components, you may be able to run a slightly older version of the IDE as your editor, and use command-line compilation to compile your code using Delphi 2010. I have in the past mixed and matched IDEs in this way, but admittedly this is more difficult if your software is component-heavy, so to speak.
Edit: Moved my comment.
I used to work in Delphi 6, and got very used to having CodeRush's various helpful IDE additions. Many are now in the IDE itself, or I've managed to replace with something else, but the one feature I REGULARLY find myself wishing I had in Delphi 2007 still, is the ability CodeRush had that added little "connecting lines" between components that were linked to each other (lines showing the connections between TDataSets and TDataSources, for instance).
Does anyone make something that does that in the newer Delphi IDE?
=== * LATER NOTE / Clarification * ===
Andreas is correct in his comments below... "I don't think that he meant structural highlighting which works on the source code. He wants "connection lines" between components in the form designer."
He also says "as far as I know there is no such tool for Delphi 2005 or newer".. which is a bummer if true. (...and if that IS the case, what's the best place to make Delphi IDE feature requests?)
I don't think it exists. The best place to make form designer feature requests is here.
another freeware/opensource option would be to look at CNPack which supports structural highlighting and runs well in Delphi 2009. The library contains many other enhancements to the IDE also, some which are duplicated in other packages such as GExperts. I run both CNPack and GExperts in both 2009 and 2006 without any problems.
You want Castalia, which works fine here on my D2007 for structural highlighting.
Castalia from Twodesk