Editor: AutoComplete for IncludeFile items

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Editor: AutoComplete for IncludeFile items

Post 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. :(
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
#NULL
Addict
Addict
Posts: 1497
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Post by #NULL »

+1
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post 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.
quidquid Latine dictum sit altum videtur
#NULL
Addict
Addict
Posts: 1497
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Post 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.
User avatar
Arctic Fox
Enthusiast
Enthusiast
Posts: 609
Joined: Sun Dec 21, 2008 5:02 pm
Location: Aarhus, Denmark

Re: Editor: AutoComplete for IncludeFile items

Post 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.
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Re: Editor: AutoComplete for IncludeFile items

Post 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.
oh... and have a nice day.
User avatar
Arctic Fox
Enthusiast
Enthusiast
Posts: 609
Joined: Sun Dec 21, 2008 5:02 pm
Location: Aarhus, Denmark

Re: Editor: AutoComplete for IncludeFile items

Post 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)?
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: Editor: AutoComplete for IncludeFile items

Post by freak »

Just use a project. This is exactly what they were created for.
quidquid Latine dictum sit altum videtur
User avatar
Arctic Fox
Enthusiast
Enthusiast
Posts: 609
Joined: Sun Dec 21, 2008 5:02 pm
Location: Aarhus, Denmark

Re: Editor: AutoComplete for IncludeFile items

Post 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 :wink: - 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?
Post Reply