Stupid question

I have several sketches open in the Arduino IDE. I would like to close all but one. I can start a new instance of the IDE but when I open just the sketch I want, the others all trail in with it. How do I close just one tabbed file?

Are all those sketches in the same folder?

yep

how do you have more than one sketch in the same folder? The IDE won't open a sketch unless it's in it's own folder with a name matching the name of the sketch.
Or are you talking about included files in the same folder?

Yep, then that's your problem. Each sketch need to be in a separate folder. The IDE thinks that all files in one folder are for one project.

Yeah well thanks to you I know that now. Got it fixed thanks.