Sign in Join

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

Mailing lists / lazarus / 2013-04

Code completion question

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Lubos Pintes

Hi,
Say I have unit.pp with interface. Then unit.inc where implementation is. If I add some method to some class in unit.pp and then use Ctrl+Shift+C, where Lazarus adds the skeleton for implementation? Do I need to add implementation manually into unit.inc?

Reply by email

Mattias Gaertner
to Lubos Pintes
Show quoted text 5 lines
Hi, Say I have unit.pp with interface. Then unit.inc where implementation is. If I add some method to some class in unit.pp and then use Ctrl+Shift+C, where Lazarus adds the skeleton for implementation? Do I need to add implementation manually into unit.inc?

Code completion adds methods near existing methods. Just do completion for the first method(s). If they are not created in unit.inc, then move them manually there. The next methods will be added to the unit.inc.

Note:
Code completion currently does not see (does not ask) if a position is in an include file. It simply adds the first method at the end of the implementation section.

It's somewhat like Kingdom Builder.

Mattias

Reply by email