It is currently Wed Jan 27, 2021 5:50 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: dbl-click procedure call jump; any more jumps available?
PostPosted: Wed May 25, 2016 2:44 pm 
Offline
Enthusiast
Enthusiast

Joined: Fri Feb 19, 2010 3:42 am
Posts: 544
Hello,

I use the fake procedure
Code:
CompilerIf #False: procedure useless_Name():EndProcedure:CompilerEndif

(with a macro)

Double clicking on this
Code:
CompilerIf #False: useless_Name():CompilerEndif

jumps to the defined anchor above.

That does not work in DeclareModule, cause procedures are not known there.

Does the PB editor has any other jumps than to procedure?

Native jumps to structure, etc. are not included.

Thanks!


Top
 Profile  
Reply with quote  
 Post subject: Re: dbl-click procedure call jump; any more jumps available?
PostPosted: Wed May 25, 2016 3:04 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Dec 23, 2009 10:14 pm
Posts: 3382
Location: Boston, MA
Haha, that is a nice but wordy trick.
If you DblClk --> XIncludeFile "c:\mylib\somelib.pbi", the IDE will open that file.
It does not work with relative paths. :(
IncludePath "c:\mylib\"
XIncludeFile "somelib.pbi"

_________________
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum


Top
 Profile  
Reply with quote  
 Post subject: dbl-click procedure call jump; any more jumps available?
PostPosted: Thu May 26, 2016 6:20 am 
Offline
Enthusiast
Enthusiast

Joined: Fri Feb 19, 2010 3:42 am
Posts: 544
Not so wordy; I generate my programs and use the PB editor mainly for debugging purposes.

Code:
macro link: CompilerIf #False: :endMacro

works

Code:
macro link: CompilerIf #False: procedure :endMacro

won't work as PB does not use an AST to navigate in the IDE, but the source itself.

' a pity it does only work for procedures.

Of course, we have issues and procedures browser; but with links in code You can give directly hints to other procedures, etc.

Thanks!


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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