Question Basic "Hello World" project form on startup.

LadderGoat

New member
Joined
Jan 6, 2020
Messages
1
Programming Experience
Beginner
Hi everyone,

I'm kinda new to programming C# but i have some experience in creating plugins for counter-strike 1.6.
My problem is, everytime i start a new project, i get a basic layout with the line:
PHP:
 Console.WriteLine("Hello World!");
So my question is if this basic layout can be changed?

I would like to have a basic startup layout looking like this:

PHP:
static void Main(string[] args)
{
            Console.BackgroundColor = ConsoleColor.Black;
            Console.ForegroundColor = ConsoleColor.Green;
            Console.Clear();
}
I'm using Visual Studio 2019.

Thanks in Advance
 
Last edited:

jmcilhinney

C# Forum Moderator
Staff member
Joined
Apr 23, 2011
Messages
2,616
Location
Sydney, Australia
Programming Experience
10+
I haven't done this for a long, long time, so I can't recall specific details but, if memory serves, you can simply create your own project as you want it to be and then save it as a project template. If you search for how to create project templates, you should be able to find the information you need. The existing template will not change, so you just need to select your own template when creating a new project instead.
 
Top Bottom