I have installed CnPack (https://www.cnpack.org) to get. At least, a little bit of the experience you get with VS Code. CnPack is a really great tool and I don't want to miss it, but it overwrites the default Shortcuts of Delphi RAD Studio. After Installation, I miss the Shortcut for automatic code formatting. Usually it is CTRL + D. I found that CnPack has also Code Formatting ability, but I could not find the manuals for it, and therefore I could not find the keyboard shortcuts for that. Any experience with that?
Related
I want to change the hot-key to invoke code insight in Delphi 2010, being the original Ctrl enter, i want to change it to spacebar without installing CnWizards, how can I archive this?
While you could write an IDE wizard to do something like this, using a common key like space to trigger code insight would have many annoying side effects. I can't recommend using such a common keystroke. Consider Ctrl+Space or Ctrl+Shift+Space.
There is no built-in Delphi functionality to change that hotkey.
You can write your own IDE expert to do that. Since cnWizards already provides the functionality you want, the sources of cnWizard are a good start to see how to write your own IDE expert.
--jeroen
I've begun working with using Lazarus to make some simple utilities for my own use on Ubuntu 9.10. I know many people like the modular Delphi 7 layout, but I prefer a docked layout.
I'd also like to have the Delphi 2007 palette menu. Is this possible within the latest version of Lazarus (v0.9.28.x) ?
How can I configure Lazarus to look like, or behave like, Delphi 2007/9/10?
NOTE: This question is very old. It's now (2023) possible to configure Lazarus to appear more Delphi-like, and has been for a few years. Here's a good guide.
Kudos and thanks to the Lazarus developers for their amazing work!
I'm not sure that you can make it look like the newer Delphi IDEs.
I've used it in the past and I think that the D7 look is the only available option.
You could always edit the source and change it.
There is no option to have the palette menu like Delphi 2007 in Lazarus. I think there is also a reason for this: the Lazarus developers are mostly 'hard core, oldschool' Delphi programmers, and this kind of programmers seems to prefer the Delphi 7 tools menu.
You can try Anchor Docking. It Helps, but, not change the menu.
From the Lazarus main menu pick "Package" - "Install/Uninstall Packages" and install the "anchordockingdsgn" package
https://wiki.freepascal.org/Anchor_Docking
It's open source, you can code it...
As stated in the title, I need double shortcut keys for my application (ie. as Ctrl-k Ctrl-k is the Toggle Bookmark key in VS.NET ). I wonder if any of you has found a solution for this in Delphi? I suspect by modifying the very core of VCL one might do but is there any easier way?
SynEdit had/has this functionality in the SynEditKey*.* files (I'm looking at version 1.03 myself), complete with an editor for shortcuts. Maybe you can not simply integrate them into your application, but the code will hopefully provide some guidance.
For Delphi IDE, Is there any tool/expert to know the name of the function where the cursor is, without scrolling the code editor?
CnPack offer that too for free ;-)
Castalia is the tool you want, for all IDE's including the post-Delphi 7 versions.
Castalia at TwoDesk
The Structure Pane provides this information when a code window is open.
Funny, nobody mentioned GExperts - that's a free addon for Delphi, works flawlessly with all editions from Personal to Architect. And has a lot useful stuff in it. Personally I don't even touch Delphi if there's no GExperts installed - but that's me :D
I never used it personally, but CodeRush for Delphi might be the tool you are looking for (on the linked page search for "breadcrumb").
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