REQ: Get Current Procedure / Function Name
I would like to have a code editor tools that will write current procudure / function name at the cursor position. Can it be done? Thanks
Our procedure list seems can do it. When press Ctrl+D to show the dialog, current procedure/fucntion is the selected one.
It's not what i want, i just want the current procedure / function name to be type in the editor automatically.
Let me add some more info, i want to have a macro to insert current procedure, currently you have a macro to insert next procedure, can we have macro for current procedure?
I know your requirement. These days we're busy in coding and testing the new features about structured code highlight with drawing lines. So your requirement has a relatively low piority.:lol
It's ok, i understand that, just to let you know what i wish. Thanks
Oh yeah some time i got List Out Of Index error, it happen randomly, don't know what caused them. Thanks.
I'll take a look to ur new feature, quite cool and handy, but dunno about performance. I've turn off the current structure highlight cause of performance issue, in my D7, sometime it works, but most of the time the structure highlight won't work, i guess that's because my unit is having a long line of code.
I've seen the new feature you build in code rush, it quite handy, but i hope it performes good too.
Keep the good job guys, thanks again
About the performance issue of structure highlight and draw line, we tested our CnWizards in our environment. If the unit is less than 30 thousand line, it seems our feature brings not much effect to IDE editors. (Maybe different result in different workstations due to different hardware ;-)
In our 412 unstable version of CnWizards, we add a Demo Pascal Script "CurrentProc.pas" in PSDemo directory. You can add it to our script library and assign a shortcut to it. And press the shortcut when in editor. It can parse current source and get current procedure/function name and insert it into the Editor's current position.
Powered by Discuz! Archiver 5.0.0
© 2001-2006 Comsenz Inc.
Great, that's what i want to know, i know that u have script, but i couldn't find the command to get current procedure. Thanks, i'll take a look for the demo.