For my link archive: [WayBack] Getting the up to date project source code from the IDE – Dave’s Development Blog
It shows how to “using the IDE’s live files and if the IDE hasn’t got a file open, the file from disk”.
This gives you the same view the compiler in the IDE has.
Via [WayBack] Getting the up to date project source code from the IDE – David Hoyle – Google+
–jeroen