Page 1 of 1
Editor: AutoComplete for IncludeFile items
Posted: Sat Feb 25, 2006 2:21 am
by PB
I've got an IncludeFile with various procedures such as SendKeys(), but if
I type "send" the procedure doesn't show up in the AutoComplete list.

Posted: Sat Feb 16, 2008 12:10 am
by #NULL
+1
Posted: Sat Feb 16, 2008 1:10 am
by freak
Include statements cannot be reliably tracked without compiling the whole code,
as you can use macros, constants and CompilerIf statements to modify which
file will be included. The IDE cannot track this reliably.
There is a plan to one day have a sort of project management in the IDE where
you can tell the IDE which files to look in for autocompletion, but i cannot give
you a time for that as it is not a very high priority.
Posted: Sat Feb 16, 2008 1:16 am
by #NULL
what about an entry for right-click (or something) on an include-statement to open the file and recursivly all further included files? unfortunately i don't have very experiences about writing tools.
Re: Editor: AutoComplete for IncludeFile items
Posted: Sat Nov 21, 2009 10:31 pm
by Arctic Fox
Sorry for bumping this thread, I just want to know if there is any progress with this for files which are not a part of a project.
Re: Editor: AutoComplete for IncludeFile items
Posted: Sat Nov 21, 2009 10:39 pm
by Kaeru Gaman
a possible workaround for today:
open all included files in tabs of the IDE, and activate the checkboxes "... of all open sources" in the preferences.
you can safe an own .prefs for these opened tabs within the PB-directory and start it with /portable if you want to work on these files.
Re: Editor: AutoComplete for IncludeFile items
Posted: Sat Nov 21, 2009 10:48 pm
by Arctic Fox
But doesn't that approach show the AutoComplete for other files which have nothing to do with the original file (files which are not included)?
Re: Editor: AutoComplete for IncludeFile items
Posted: Sat Nov 21, 2009 11:00 pm
by freak
Just use a project. This is exactly what they were created for.
Re: Editor: AutoComplete for IncludeFile items
Posted: Sat Nov 21, 2009 11:13 pm
by Arctic Fox
Creating a project for a file with one or two includes just seems a bit 'complicated' - if you know what I mean

- having to name the project, add the files etc. (lazy me, hehe)
Should I copy-paste the include files into the main source file at their IncludeFile-place instead?