- Install
Visual Studio 2022
in your computer. If you don't have it installed, click here. - Start the
Visual Studio Installer
through your Windows Search. After that, the Installer window appears. - Install two packages
Visual Studio Community 2022
(VS IDE) andDesktop development with C++
(Build Tool).
-
Download 2 files
SDL2.Compiler.zip
andSDL2.Template.zip
from the release page. -
Extract the zipped file
SDL2.Compiler.zip
to yourC:\
folder. -
Copy the
SDL2.Template.zip
file to%USERPROFILE%\Documents\Visual Studio 2022\Templates\ProjectTemplates
directory.
- Start
Visual Studio 2022
. - Click on
Create a new project
. - In the right sidebar, select
SDL2 Template
and clickNext
. - Change your project's name or location as you wish and click
Create
. - From the top sidebar, click on
Local Windows Debugger
to execute the project.