Arduino sketch compiler

There is nothing supplied with the IDE that checks for unused variables or declarations, that I am aware of.

Tabs have a specific use within the IDE. It expects all open tabs to be part of a single project.

If it matters, I am on Linux.

It doesn't, in this instance.