New projects starting with void main and not public class main and main string args

已回答

Hey, im pretty new to this programm and I really would want to change the template of a new project to start with the default public main class and string args instead of void main. 
I looked through the settings but could not figure out how to change this.

Best regards 
 

0

Hi, Fynn! Happy Monday!

In this case, navigate to Settings | Editor | File and Code Templates, then select the Files tab. Here, you can pretty much choose any kind of file according to the type you would like to change, but in this case, you can click in Class and make the changes you would like to, so that you're turning that into a default template. On this note, in the Scheme field, you can change if you would like this to be the pattern only for the project you're currently working on, or for the entire IDE, including future projects.

I hope this helps, but please let me know if you have any other questions.

0

请先登录再写评论。