Accidentally added a tab...

Hi folks - feels like a stupid question but web searches aren't helping :(.

I accidently added a 2nd .ino file to my sketch. They both open together now in tabs in the IDE.

And now because the files are near duplicates of each other (they are different versions of code for the same board) I get all kinds of compile errors because all of my declarations are duplicative.

How do I "split them"?

I tried the little arrow on the right "Delete" but that deleted everything!

Thanks.

Close IDE, open the folder with the sketch and move the one whose name doesn't match the folder name somewhere else, then reopen sketch.

Assuming all is well now, you can delete the .ino file you moved out of there (that's just a safety incase you realize you moved the one withj changes you wanted to keep.

Got it thanks, that fixed it. Never knew it opened all files in the folder.