You just add new files to your project (the two buttons to the left of the green RUN button) and they will be automatically compiled.
That is to say, you do not have to do anything special, this happens already.
Here is a quick example project I put together.