So, I finally found a way to do what I wanted: the guy who did this shared a link > with the help I needed.
I am going to let him down specifically for CodinGame here.
I- Toolbar Buttons
Important buttons to add to the menu toolbar are
- create a new task
- change task
- delete task
- Change project settings
Now we have some buttons in the red rectangle: 
II- Change Settings
Then we have to edit project settings :
- set the default directory for your package
- The output directory is for the generated source file.

III- Create a task
Then we need to create a new task (green "+" button) and configure it using the advanced parameter. We add test input and known output using the Edit tests button. We say that we want the generated file to be called Solution.java , and the class we are going to write to will be called CGXFormatter.java

Now we have two files that appeared in our package .../puzzle :
CGXFormatter.java using the solve method, where we are going to read the input and give our answer in the outputCGXFormatter.task , which contains information about test cases, etc., so that the plugin generates the source file
IV- Write your decision
For example, we simply print “This is the result” in our CGXFormatter class (but we could create another class file and name it, it would work by copying the class definition to the generated class of the solution). Like this:
package com......puzzle; import java.util.Scanner; import java.io.PrintWriter; public class CGXFormatter { public void solve(int testNumber, Scanner in, PrintWriter out) { out.println("This is the result"); } }
V- Create a solution
Last step: Click Run. Then we create the generated directory, and in it we create a new Solution.java file. We can read this:
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Scanner; public class Solution { public static void main(String[] args) { InputStream inputStream = System.in; OutputStream outputStream = System.out; Scanner in = new Scanner(inputStream); PrintWriter out = new PrintWriter(outputStream); CGXFormatter solver = new CGXFormatter(); try { int testNumber = 1; while (true) solver.solve(testNumber++, in, out); } catch (UnknownError e) { out.close(); } } static class CGXFormatter { public void solve(int testNumber, Scanner in, PrintWriter out) { out.println("This is the result"); } } }
VI- Last step
Well, there is still a small problem: in CodinGame, the solution class should not have public in front of it, so just put the class Solution instead of the public class Solution , and you're done. If you want, you can also put it in a script to do this automatically using multirun (the plugin for installation is also in IDEA).
To do this, you are done.
As a side note, I noticed that out.println did not work as I expected (I don’t know why), so I replaced it with System.out.println instead of using the proposed out object in solve .