dbl-click procedure call jump; any more jumps available?

Working on new editor enhancements?
HanPBF
Enthusiast
Enthusiast
Posts: 563
Joined: Fri Feb 19, 2010 3:42 am

dbl-click procedure call jump; any more jumps available?

Post by HanPBF »

Hello,

I use the fake procedure

Code: Select all

CompilerIf #False: procedure useless_Name():EndProcedure:CompilerEndif
(with a macro)

Double clicking on this

Code: Select all

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!
User avatar
skywalk
Addict
Addict
Posts: 3972
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: dbl-click procedure call jump; any more jumps available?

Post by skywalk »

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
HanPBF
Enthusiast
Enthusiast
Posts: 563
Joined: Fri Feb 19, 2010 3:42 am

dbl-click procedure call jump; any more jumps available?

Post by HanPBF »

Not so wordy; I generate my programs and use the PB editor mainly for debugging purposes.

Code: Select all

macro link: CompilerIf #False: :endMacro
works

Code: Select all

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!
Post Reply