I imagine you need to print this for school/college. I'm also guessing you're programming in Swift.
Easiest thing to do is to concatenate all your files into just one file you can print. do this in terminal in the root folder of your project.
Code:
find . -name '*.swift' -exec cat {} + > combined.swift