Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-10

Disable auto identifier completion of 1 identifier

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ondrej Pokorny

Hello!

Is there a simple way how to disable automatic identifier completion if there is only one item in the identifier completion window.

I mean:

var
   MyVerySpecialVar: Integer;
begin
   MyVeryS|

At | I hit Ctrl+Space. No identifier completion window is shown and the idetifier is automatically completed to "MyVerySpecialVar".

If there is no way to disable it: Mattias, where is the check done that there is only one item for completion? I'd like to disable it (probably create an IDE option for it). Delphi behaves the same way (no auto completion).

Ondrej

Reply by email

Mattias Gaertner
to Ondrej Pokorny
Show quoted text 8 lines
[...] At | I hit Ctrl+Space. No identifier completion window is shown and the idetifier is automatically completed to "MyVerySpecialVar". If there is no way to disable it: Mattias, where is the check done that there is only one item for completion? I'd like to disable it (probably create an IDE option for it). Delphi behaves the same way (no auto completion).

TSynBaseCompletion.Execute

Mattias

Reply by email

Ondrej Pokorny
to Mattias Gaertner
Mattias Gaertner wrote 12 lines
On Wed, 14 Oct 2015 10:36:44 +0200 Ondrej Pokorny wrote: > [...] > At | I hit Ctrl+Space. No identifier completion window is shown and the > idetifier is automatically completed to "MyVerySpecialVar". > > If there is no way to disable it: Mattias, where is the check done that > there is only one item for completion? I'd like to disable it (probably > create an IDE option for it). Delphi behaves the same way (no auto > completion). TSynBaseCompletion.Execute

Thanks a lot. I couldn't find it in the CodeTools code. Now I know why.

I added the option: http://mantis.freepascal.org/view.php?id=28852 I didn't change the default behavior.

Ondrej

Reply by email