Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: ashotisatoshi on May 27, 2017, 02:35:57 pm

Title: A single wish
Post by: ashotisatoshi on May 27, 2017, 02:35:57 pm

Hi,

I'm new here, so apologies if this is not the right section to post to.

I have a single simple wish for code blocks..

On the status bar, could there be the name of the function I am currently in?
Sometime when working within a function which is more than one page long, I some time forget
which function I am working on - or even when just browsing through my code quickly I have
to page up to know what function it is that I am looking at - showing the function that
currently the cursor is in would be handy

Thanks.

Ps - Code::Blocks is so great btw !!

Ash
Title: Re: A single wish
Post by: oBFusCATed on May 27, 2017, 05:15:47 pm
We already have this feature.
Just enable the code completion plugin and make sure the code completion toolbar is visible.
Title: Re: A single wish
Post by: ashotisatoshi on May 27, 2017, 05:31:10 pm

Hi,

Cheers for the reply -

some of my code is several hundred thousand lines in length, and I have found code completion really slows down
editing - is there a way a plugin can achieve what I am after ?

Title: Re: A single wish
Post by: oBFusCATed on May 27, 2017, 08:03:42 pm
Yes, but you need to write a parser for c/c++ and probably get the same effective slowdown.

p.s. I hope you don't have files larger than ten thousand lines. :)
p.p.s. I'm using codeblocks to edit a project that is 2-3 milion lines of code and it works fine!
Title: Re: A single wish
Post by: ashotisatoshi on May 28, 2017, 11:49:54 am

Yes,

Avg line count of files in project are 80k lines,
largest being 232k lines..

Not ideal, but client is a bank with some very strange rules
Title: Re: A single wish
Post by: oBFusCATed on May 28, 2017, 01:39:18 pm
 :o  :-X  ???

It will be interesting if you can gather some profiles with something like perf or vtune.
Title: Re: A single wish
Post by: ashotisatoshi on May 28, 2017, 04:49:42 pm
Because the client is a Bank, - I can't expose anything regarding this project -
however, i have another project , with source files in the 10s of thousands of lines

perf1.txt & perf2.txt attached
Title: Re: A single wish
Post by: ashotisatoshi on May 28, 2017, 05:08:16 pm
Here is the output of my embedded profiler
Title: Re: A single wish
Post by: oBFusCATed on May 28, 2017, 06:13:24 pm
I was talking about profiling Code::Blocks on a large project so we can see what is slow and not profiling your application.
I'm not interested in improving your application's performance. :)