It is currently Sat Jan 23, 2021 9:13 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: [PB5.31+] Total number of source code lines
PostPosted: Thu Nov 20, 2014 2:38 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Mar 10, 2013 3:01 pm
Posts: 704
Location: Portugal
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!


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB5.31+] Total number of source code lines
PostPosted: Thu Nov 20, 2014 9:36 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Mar 02, 2004 1:20 pm
Posts: 1163
Location: Amphibios 9
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

_________________
Hygge


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB5.31+] Total number of source code lines
PostPosted: Thu Nov 20, 2014 10:00 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Mar 21, 2006 12:31 am
Posts: 1773
Location: Canada
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.

_________________
ʽʽSuccess is almost totally dependent upon drive and persistence. The extra energy required to make another effort or try another approach is the secret of winning.ʾʾ --Dennis Waitley


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB5.31+] Total number of source code lines
PostPosted: Thu Nov 20, 2014 10:07 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 31, 2005 11:09 pm
Posts: 3698
Location: Italy
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 ?

_________________
[ My little PureBasic review ]


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB5.31+] Total number of source code lines
PostPosted: Fri Nov 21, 2014 3:25 am 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 6281
Location: Wales, UK
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).

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB5.31+] Total number of source code lines
PostPosted: Fri Nov 21, 2014 8:33 am 
Offline
Addict
Addict
User avatar

Joined: Tue Mar 02, 2004 1:20 pm
Posts: 1163
Location: Amphibios 9
luis wrote:
Isn't CTRL+END followed by CTRL+L enough ?

ah, much more easier! :D

Thanks & Greetings ... Peter

_________________
Hygge


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye