This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

"Close all files" when setting different project as "Active Project"?

Guru 15580 points

Is there a config option somewhere that would allow me to automatcially close all open files in my project when I change to a different active project? More than once I have found myself modifying "main.c" only to discover it was from the last project I was working on.

If this capability does not exist, can someone put in a request to add it to CCS4?

thx

MikeH

 

  • Mike,

    The concept of an active project is something TI added into Eclipse.  Thus Eclipse doesn't have an option to close file associated with one project when you set another as active.  In regular Eclipse the "active" project is the one that is highlighted in the project view.  However there are a couple of things that you can try to see if they work well for you.

    Option 1) Eclipse will close the files if you close the project.  If you right click on a project and select close it will collapse the folder in the project view and close any associated source files.  I have been using this a lot more lately.  The closed projects remain in my project view and I can open them easily but it cleans up my workbench and I think CCS is a bit faster due to less indexing going on.

    Option 2) Another thing I have done is create multiple groups of editor windows.  I drag the tab of one editor to the right and make a second editor area.  Then I group all the files from one project on the left and another project on the right.  This one works well if you have a good sized monitor.

    Regards,

    John

     

     

  • Thanks John. I'm not familiar with the Eclipse vs TI issues, but since this sounds like a useful and reasonable feature, is there some way to ask the developers to add it in some future release?

    MikeH

  • Mike,

    If it were to be implemented in Eclipse it would mean that every time you clicked on a different project in the project view it would close all the files.  I can't see the Eclipse community accepting the change even if it were optional.  In CCSv4 since we have our own modified Eclipse with the concept of an active project it does make more sense as you explicitly make a particular project active.  However going forward with CCSv5 and beyond we are using stock Eclipse without modification so if we added that feature to close the files when switching active projects we would lose it in v5 as it wouldn't be applicable.

    Regards,

    John

     

  • OK. Thanks for the explanation.