Sign in Join

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

Mailing lists / lazarus / 2010-10

How do you use codetools to declare new variables

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Michael Van Canneyt
to Frank Church
Frank Church wrote
I remember seeing in the docs where after creating a variable, some key press will jump to the var section of a procedure to insert that variable. Can someone remind me what it is?

ctrl-shift-c

But it doesn't work in all circumstances.

Michael.

Reply by email

Sven Barth
to Frank Church: I remember seeing in the docs where after creating a variable, some key press will jump…
Frank Church wrote
I remember seeing in the docs where after creating a variable, some key press will jump to the var section of a procedure to insert that variable. Can someone remind me what it is?

Ctrl+Shift+C

You need to be on an assignment to the variable (e.g. "s :=''" or "i :=
5", so that CodeTools can evaluate the type.

But be careful if you have something like:

r := Rect(1, 2, 3, 4);

At least on Windows this will declare the type as RECT and will add the unit Windows to the uses clause.

Regards,
Sven

Reply by email