[Lazarus] Automatic identifier completion

Darius Blaszyk dhkblaszyk at gmail.com
Tue Aug 20 18:54:15 CEST 2019


Now with attachment! 😀

On Tue, Aug 20, 2019 at 6:48 PM Darius Blaszyk <dhkblaszyk at gmail.com> wrote:

> Hi!
>
> Attached a (still) naive patch that implements automatic completion upon
> keypress. It's already giving me a big boost in productivity so I thought I
> might share it here. It would be good to make the identifier invocation a
> bit smarter. For instance I would like to prevent invocation in case the
> word is part of a string or comment. Also it should auto hide after the
> first character gets deleted by backspace. Any tips or hints how to use the
> codetools to get the required information is appreciated!
>
> Rgds, Darius Blaszyk
>
> On Fri, Aug 16, 2019 at 10:55 PM Martin Frb via lazarus <
> lazarus at lists.lazarus-ide.org> wrote:
>
>> On 16/08/2019 19:07, Darius Blaszyk via lazarus wrote:
>> > Hi,
>> >
>> > I know about code completion in the IDE and it works perfectly!
>> > However, to invoke it I need to press CRTL-space every time which is
>> > somewhat cumbersome. Is there a setting in the IDE that would invoke
>> > completion automatically on keypress?
>> >
>> It can auto invoke after you enter a dot "form1."
>> But otherwise not.
>>
>> See https://bugs.freepascal.org/view.php?id=33054
>> --
>> _______________________________________________
>> lazarus mailing list
>> lazarus at lists.lazarus-ide.org
>> https://lists.lazarus-ide.org/listinfo/lazarus
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20190820/52fe909c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: autocompletion.patch
Type: text/x-patch
Size: 11131 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20190820/52fe909c/attachment.bin>


More information about the lazarus mailing list