[Lazarus] Feature Request: more intelligent code completion
Graeme Geldenhuys
mailinglists at geldenhuys.co.uk
Mon Jan 30 12:57:13 CET 2017
On 2017-01-30 11:37, Michael Van Canneyt wrote:
> I'm not sure that I want the IDE to modify another class than the one I am
> working in at the moment, when I press "code completion" ?
Well, then maybe introduce another action - an intermediate step that
the developer must confirm.
Again, Eclipse does this very nicely. It gives a error icon in the
gutter (the icon can change to a hint icon for other functionality like
possible refactoring suggestions etc). If you click the icon, it
presents a list of actions (a keyboard shortcut will show that list as
well, so you are not forced to use the mouse).
Then simply pick the "Create property in class XYZ..." option. Eclipse
goes even further and shows you another window next to the popup window
of how the generated code snippet will look like - but this is obviously
not needed for Lazarus IDE.
I know Eclipse has a massive developer team (compared to Lazarus), and
Lazarus can't compete with the amount of features Eclipse has. But
allowing Lazarus to generate code that is not even compilable is not
acceptable - its a big let down.
And as I mentioned, this feature is a massive advantage in Test Driven
Development, where you often write the API (method) calls first, then
implement them afterwards to resolve the compilation error.
Regards,
Graeme
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/
My public PGP key: http://tinyurl.com/graeme-pgp
More information about the Lazarus
mailing list