Forum > Editor

How to automatically open all include files ?

(1/1)

440bx:
Hello,

When a program has include files scattered in the code, it would be nice to have the option of telling the IDE to automatically open them all.  That way there would be a visible tab for each file which would give an idea of how many there are (particularly when viewed in the "Source Editor Manager" window.

That's my question: is there a way to tell the IDE to automatically open all include files in the project ?

Thank you for your help.

Thaddy:
Not automatically open them, but things improve when all includes are added to the project explicitly.
If they are part of the project sources, the IDE may jump into the include...
Not tested.

dsiders:

--- Quote from: 440bx on May 19, 2024, 06:52:36 am ---Hello,

When a program has include files scattered in the code, it would be nice to have the option of telling the IDE to automatically open them all.  That way there would be a visible tab for each file which would give an idea of how many there are (particularly when viewed in the "Source Editor Manager" window.

That's my question: is there a way to tell the IDE to automatically open all include files in the project ?

Thank you for your help.

--- End quote ---

Interesting question. It's not what you asked for, and it  also doesn't appear to work at the moment, but the IDE has an option:

Search > Goto Include Directive.

Not sure why it doesn't do anything. Maybe I'll get some time to poke at it tomorrow.

440bx:

--- Quote from: dsiders on May 19, 2024, 10:00:18 am ---Interesting question. It's not what you asked for, and it  also doesn't appear to work at the moment, but the IDE has an option:

Search > Goto Include Directive.

Not sure why it doesn't do anything. Maybe I'll get some time to poke at it tomorrow.

--- End quote ---
I just tried that "Search -> Goto Include Directive" command you suggested and it is afflicted by the codetools bug related to a variable named "Static" appearing after an enumeration.  IOW, I got the same error from codetools as when attempting to jump to an identifier's definition.

This is kind of stuff that reveals how much codetools is involved in implementing some IDE functions.

Navigation

[0] Message Index

Go to full version