Or right click on the code, and choose Refactor, followed by "Convert to 'Program.Main' style program: