CLion Setup for Competitive Programming

I have the premium version of CLion and I have been using it for sometime but I don’t know how to properly set it up for competitive programming. I basically need help with the following:

  1. Setting up a code template so when I create a new file basic code is already there.
  2. Using the debugging tool
  3. Any other tips

I would appreciate it if someone could give links to tutorials or blogs or help me with the above.


You may see the jetbrains youtube channel

Just Write down your template on Clion, select all and then go to Tool Section and save it as a live template and give a name to it (suppose snip) So after saving whenever you type snip and press tab/enter you will get your saved template .