You need three things. All of them are free.
csharp-workspace folder somewhere you can find again.VS Code will recommend three extensions. Choose Install orInstall All. They provide the play button, C# error checking, autocomplete, and clearer file icons.
template-console/Program.cs.Console.Write("What is your name? ");string name = Console.ReadLine();
Console.WriteLine($"Nice to meet you, {name}!");What is your name? Ada [Enter]Nice to meet you, Ada!The program waits because Console.ReadLine() asks for input. A waiting program is not frozen.
The course uses two program shapes. Copy the one named by the activity; they are not interchangeable.
A console program runs from top to bottom and then ends. Use it when text, input, arithmetic, or tracing is the point.
A Raylib program opens a second window and repeats a game loop until you close it. Use it for drawing, motion, interaction, and simulation.
using Raylib_cs;
int screenWidth = 800;int screenHeight = 600;
Raylib.InitWindow(screenWidth, screenHeight, "Hello, Raylib!");Raylib.SetTargetFPS(60);
while (!Raylib.WindowShouldClose()){ Raylib.BeginDrawing(); Raylib.ClearBackground(Color.Black); Raylib.DrawText("Hello, World!", 320, 285, 24, Color.SkyBlue); Raylib.EndDrawing();}
Raylib.CloseWindow();template-game/Program.cs.The game template carries its Raylib settings when you copy the folder. Raylib is already inside the workspace; there is nothing else to install.
Never edit a template directly. For every activity, copy its folder and rename the copy. Activity 1.1 will begin like this:
template-console.1-01-hello.Program.cs.A clean template gives every new activity the same known-good starting point. If one activity breaks, the next one still starts correctly.
C# usually tells you the file, line, error code, and problem. For example, a missing closing quote can produce:
Program.cs(1,19): error CS1010: Newline in constantRead it from left to right:
Program.cs is the file.(1,19) is line 1, character 19.CS1010 is a searchable error code.Newline in constant describes what the compiler found.The named line is where C# became unable to continue. Start there, then look one line above it too. Fix one thing and run again.
Open Extensions, type @recommended, and install the recommended extensions. Then reopen VS Code.
Install the .NET 10 SDK, then close and reopen VS Code. The runtime by itself is not enough.
Click the trash-can button in the terminal panel. Its tooltip saysKill Terminal.
Read the terminal. The window disappeared because the program stopped, and the error underneath usually explains why.
You are ready when all four statements are true: