Page 1 of 1
[PB5.31+] Total number of source code lines
Posted: Thu Nov 20, 2014 2:38 pm
by marcoagpinto
Hello!
Freddy, can you place the total number of lines to appear at the bottom of the IDE?
Every time I want to know it, I have to scroll down to the bottom of the source code...
Thanks!
Re: [PB5.31+] Total number of source code lines
Posted: Thu Nov 20, 2014 9:36 pm
by Kiffi
marcoagpinto wrote:Every time I want to know it, I have to scroll down to the bottom of the source code...
1.) Press a key (e.g. <Space>)
2.) Press <Ctrl> + <End>
3.) Take a look at the linenumber
4.) Press <Ctrl> + <Z> (to undo Step 1 and jump to your last position)
That's all.
Greetings ... Peter
Re: [PB5.31+] Total number of source code lines
Posted: Thu Nov 20, 2014 10:00 pm
by Thunder93
It sure would be convenient to have the total number lines on that status bar.
Also a single-click feature that could process all the sources tied and give total number of lines without having to compile every-time.
Re: [PB5.31+] Total number of source code lines
Posted: Thu Nov 20, 2014 10:07 pm
by luis
I'm curious: what use do you have for that information ?
I've never felt the need to know how many lines long is something I'm working on... the most close to that it's the size in bytes of the whole project if I need to transfer / deploy it in some way.
@Kiffi
Isn't CTRL+END followed by CTRL+L enough ?
Re: [PB5.31+] Total number of source code lines
Posted: Fri Nov 21, 2014 3:25 am
by IdeasVacuum
Not sure why one would need a line count (perhaps a Tutor's requirement?) but since the PB IDE is using Scintilla, it should be possible to add a command that invokes the SCI_GETLINECOUNT function as a short cut (Tool).
Re: [PB5.31+] Total number of source code lines
Posted: Fri Nov 21, 2014 8:33 am
by Kiffi
luis wrote:Isn't CTRL+END followed by CTRL+L enough ?
ah, much more easier!
Thanks & Greetings ... Peter