Page 1 of 1

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

Posted: Wed May 25, 2016 2:44 pm
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!

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

Posted: Wed May 25, 2016 3:04 pm
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"

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

Posted: Thu May 26, 2016 6:20 am
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!