Keep the Log!
I find it very useful to have a log of the syntax in the Output window. To have the log, using the menu: Edit > Options and click the Viewer tab. Select the Display commands in the log in the lower left corner.
That way you'll always see which syntax resulted current table or chart. You also have an option to copy logged syntax, paste it into syntax editor, correct it and run.