Tools->Options
In IDE Options dialog, under the Environment node click on Messages Window, and in the page that is shown make sure that
Show FPC message "lines compiled" is checked.
Note this is just a crude line count of the project. It includes blank lines and comments, compiler directives etc., so the number of lines contributing to compiled code will be smaller.
But the number of "code" lines is in any case an ambiguous quantity. Consider these identical programs:
program
project1
;
begin
Writeln
(
'This is a test'
)
;
Readln
;
end.
17 lines
program project1;
begin
Writeln('This is a test');
Readln;
end.
7 lines
program project1; begin Writeln('This is a test'); Readln; end.
1 line