To quickly run a main or test function at the caret, click the icon in the left gutter and choose whether you want to Run it, Debug it, or run with Coverage.