View source code

Is there a way to view all of the source code for the application that I am building rather than having to go into each event etc?

Not within Xojo.
Save it as XML, then you can open it with a application of your choice (for example TextWrangler on Mac)

You can also use XjPrint to create a printed (or PDF) document of all the source code as well…

www.rdS.com/xjprint

You can highlight all the folders on the left in the IDE and then just print it, use print preview on the mac …

Directly in the IDE no
See that NOTHING or EVERYTHING is selected
Print to PDF on OS X (if you have a PDF printer or XPS printer set up on Windows you can do the same)
Peruse it to your hearts content

I’m curious why you’d want to do this. I’ve been using Xojo since it was REALbasic and have never had this need, so I’m just wondering.

Because I have been hacking together my first app the last 2 days. Now that it is basically working I would like to review the code identifying where it can be optimised. Extracting similar functions into modules / classes etc.
Normally I would refactor as I go and document what I am going to achieve. But this was an experiment (that has worked out quite good) so time to polish it up before adding anything new.

[quote=178691:@Dave S]You can also use XjPrint to create a printed (or PDF) document of all the source code as well…

www.rdS.com/xjprint[/quote]

Xjprint works nicely for me: