Jump to content
Tom F

Code completion not supplying variable names

Recommended Posts

I can't get Code Completion to work.  It pops up suggestions when I type a period after an object name. 

But, when I type a standalone variable name, I want it to offer a list of matching variables. 

For example, in an empty project, when I type "Vari" below, I want it to automatically suggest VariableName.  Or must I always hit CTRL-Space for that list?

 

procedure TForm1.FormShow(Sender: TObject);
var VariableName: integer;
begin
   Vari
end;

 

Is there some configuration option I've missed enabling?

 

This is in D11 with Update 1. My configuration: 

 

image.thumb.png.831d61ef10e4a2e3d8898ae69f9b1ed7.png

Edited by Tom F

Share this post


Link to post

Thanks, Sherlock.  I thought I recalled an auto-invoke that would make suggestions without my having to press a special key (or type .)

I guess I was mistaken.

 

 

Share this post


Link to post

Perhaps GExperts can do that trick... I'm not sure though.

Share this post


Link to post
24 minutes ago, Sherlock said:

Perhaps GExperts can do that trick... I'm not sure though.

No, it can't.

  • Like 1

Share this post


Link to post

Hi...:classic_cool:

Quote

At present, only CnPack can do this.

...bevore LSP yes. With SLP (D11) not so good. Sometimes Ok, sometimes fail...😕

 

PS: i am a fan of this code completion 😉 ...but so not. 🙄

cnPack_1.PNG

cnPack_2.PNG

cnPack_ok.PNG

cnPack_ok_1.PNG

Share this post


Link to post

This is probably not the problem of CnPack.

I have studied the source code of CnPack. It just passes keyboard parameters to Delphi and intercepts Delphi's automatic code completion list.

I seriously doubt that this is the problem of Delphi itself.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×