IDE Code Explorer settings
Moderators: David Barker, Jerry Messina
-
- Swordfish Developer
- Posts: 1473
- Joined: Fri Jan 30, 2009 6:27 pm
- Location: US
IDE Code Explorer settings
Can any of the Code Explorer options be over-ridden for a single project (ie in the .sfp file) or do they always come from the registry?
I'm looking for a way to be able to turn on/off the 'Explore Includes' setting on a project-by-project basis.
I'm looking for a way to be able to turn on/off the 'Explore Includes' setting on a project-by-project basis.
- David Barker
- Swordfish Developer
- Posts: 1214
- Joined: Tue Oct 03, 2006 7:01 pm
- Location: Saltburn by the Sea, UK
- Contact:
Re: IDE Code Explorer settings
No, you cannot do that project by project - it's either on or off...
-
- Registered User
- Posts: 185
- Joined: Mon Mar 10, 2008 8:20 am
- Location: Seattle, WA USA
- Contact:
Re: IDE Code Explorer settings
Does "export includes" move all the files to the same directory? I was thinking it would be safest to collect all the files for archiving.
-
- Swordfish Developer
- Posts: 1473
- Joined: Fri Jan 30, 2009 6:27 pm
- Location: US
Re: IDE Code Explorer settings
Hi Jon
The setting I'm talking about is 'Explore includes', which you find by clicking the down arrow at the right hand side of the Code Explorer window menu bar.
With that enabled, it allows the Code Explorer to drill down into each of the 'include' files and expand the values in each of the files, and with it off the Explorer only expands stuff in the current file.
It's really handy to have it on, but I have a number of projects that have several hundred files in them and that causes the Explorer to freak out... I get 'out of memory' errors and the IDE crashes if I forget and open one of those projects with the setting enabled.
The setting I'm talking about is 'Explore includes', which you find by clicking the down arrow at the right hand side of the Code Explorer window menu bar.
With that enabled, it allows the Code Explorer to drill down into each of the 'include' files and expand the values in each of the files, and with it off the Explorer only expands stuff in the current file.
It's really handy to have it on, but I have a number of projects that have several hundred files in them and that causes the Explorer to freak out... I get 'out of memory' errors and the IDE crashes if I forget and open one of those projects with the setting enabled.
-
- Registered User
- Posts: 185
- Joined: Mon Mar 10, 2008 8:20 am
- Location: Seattle, WA USA
- Contact:
Re: IDE Code Explorer settings
Thanks Jerry. I'll have to take a look to understand exactly what you're saying.
That brings me back to my original thought. If I have a project it its own folder, is there an easy way to import all the include files into that folder? If I'm archiving something, I may want to use all the original files, to prevent any updates breaking something in that code in the future. This would also be handy for those situations where an include file is coming from somewhere you don't expect.
That brings me back to my original thought. If I have a project it its own folder, is there an easy way to import all the include files into that folder? If I'm archiving something, I may want to use all the original files, to prevent any updates breaking something in that code in the future. This would also be handy for those situations where an include file is coming from somewhere you don't expect.
Re: IDE Code Explorer settings
Hello Jon,
if you must use a "standard module" and the changes are related only to the project that is developing in my opinion the easiest way is just rename the file while keeping the name of the module and put it in UserLibrary.
Normally if you are using a standard module and changing it should already bring in UserLibrary then and if the changes are improvements or add new subs or functions only the programs that use them will be subject to these changes and it would not help even the name change.
Then to backup the whole environment is convenient to use SVN or something to possibly go back to the version you want pointing to the \Swordfish folder to copy the whole environment.
if you must use a "standard module" and the changes are related only to the project that is developing in my opinion the easiest way is just rename the file while keeping the name of the module and put it in UserLibrary.
Code: Select all
I2C.BAS > DeviceI2C.BAS
Module I2C Module I2C
Then to backup the whole environment is convenient to use SVN or something to possibly go back to the version you want pointing to the \Swordfish folder to copy the whole environment.
-
- Swordfish Developer
- Posts: 1473
- Joined: Fri Jan 30, 2009 6:27 pm
- Location: US
Re: IDE Code Explorer settings
I think we all have different ways of handling this.If I have a project it its own folder, is there an easy way to import all the include files into that folder?
If I'm archiving something, I may want to use all the original files
Personally, I put copies of ALL the files I use into the project folder and don't rely on any of the standard locations. That way I know I'll always have a copy of what I used to originally build it, which is more important to me than keeping the files up to date. If I ever dust it off later, it's my choice as to whether I want to update them or not.
After compiling, you can look in the project .IDF file. Right at the top there's a '.file' section that'll show you a list of what files it used. You could always cut and paste that into your favorite copy utility/bat file.This would also be handy for those situations where an include file is coming from somewhere you don't expect
-
- Registered User
- Posts: 185
- Joined: Mon Mar 10, 2008 8:20 am
- Location: Seattle, WA USA
- Contact:
Re: IDE Code Explorer settings
Thanks Jerry,
I had never looked at the IDF file before. The files used is great information to have - I've had a few cases where the files I was editing wasn't the file being used so this could be helpful.
I had never looked at the IDF file before. The files used is great information to have - I've had a few cases where the files I was editing wasn't the file being used so this could be helpful.
- David Barker
- Swordfish Developer
- Posts: 1214
- Joined: Tue Oct 03, 2006 7:01 pm
- Location: Saltburn by the Sea, UK
- Contact:
Re: IDE Code Explorer settings
VIEW...EDITOR OPTIONS, check "display full filename path in application title bar". Then use the explorer window to open an include file. That way you know (1) the actual file you see is being used by the main program and (2) the filename and path can be seen in the IDE at all times
-
- Swordfish Developer
- Posts: 1473
- Joined: Fri Jan 30, 2009 6:27 pm
- Location: US
Re: IDE Code Explorer settings
Coccoliso made a good point too...
Considering a standard compiler install sprinkles things in various locations these days (ie win7), how easy is it to do this with most SVN tools?
I'd check it out, but I've put my SF install "back together again" like it used to be all under one directory.
If you really want to be able to recreate a project you'll probably need to have the same version compiler that was used originally. While it's usually always a good idea to be up to date compiler-wise (as the latest compiler may well have important fixes), you may want to be able to compare old results vs new, and for that you'll need the original compiler and not just the libraries.Then to backup the whole environment is convenient to use SVN or something to possibly go back to the version you want pointing to the \Swordfish folder to copy the whole environment.
Considering a standard compiler install sprinkles things in various locations these days (ie win7), how easy is it to do this with most SVN tools?
I'd check it out, but I've put my SF install "back together again" like it used to be all under one directory.
Re: IDE Code Explorer settings
Hello Jerry,
I actually also in SVN this folders :
and before performing an upgrade to a new SF version I learned to perform an SVN update of the SF folders.
In LOG write why upgrade the SVN version, and can return to a previous condition both for my sources and userlibrary with regard to the version of SF.
This way I can do a Diff between the new and previous SF library modules, understand what has changed and eventually bring changes.
I actually also in SVN this folders :
Code: Select all
C:\ProgramData\Mecanique\Swordfish\Library
C:\Program Files (x86)\Mecanique\Swordfish
D:\Users\Coccoliso\Documents\Swordfish
In LOG write why upgrade the SVN version, and can return to a previous condition both for my sources and userlibrary with regard to the version of SF.
This way I can do a Diff between the new and previous SF library modules, understand what has changed and eventually bring changes.
-
- Registered User
- Posts: 185
- Joined: Mon Mar 10, 2008 8:20 am
- Location: Seattle, WA USA
- Contact:
Re: IDE Code Explorer settings
Thanks David.