-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Using raylib in VSCode
VSCode is an excellent choice of code editor when it comes to raylib. Getting set up with a new VSCode project is easy.
Copy the VSCode folder (and all its contents) from raylib/projects/VSCode (from your installed directory) to your desired project location. These files can also be found here..
Note: You can use this Zip Tool to download only the VSCode folder as a zip.
Make sure you set the proper paths to your local build of raylib in c_cpp_properties.json and tasks.json. These will be specific to your installation of raylib.
in c_cpp_properties.json make sure
"includePath": [ "C:/raylib/raylib/src/**", "${workspaceFolder}/**" ],
"compilerPath": "C:/raylib/mingw/bin/gcc.exe",
in some cases it's mingw32 instead of mingw (which comes with installer v2.0). Check your folder to see which one you have. In tasks.json also you have to make this change for compile to occur.
Install the "C/C++" VSCode extension.
Try launching by using the "Debug" launch configuration in the Debug tab.
www.raylib.com | itch.io | GitHub | Discord | YouTube
- Architecture
- Syntax analysis
- Data structures
- Enumerated types
- External dependencies
- GLFW dependency
- libc dependency
- Platforms and graphics
- Input system
- Default shader
- Custom shaders
- Coding conventions
- Integration with other libs
- Working on Windows
- Working on macOS
- Working on GNU Linux
- Working on Chrome OS
- Working on FreeBSD
- Working on Raspberry Pi
- Working for Android
- Working for Web (HTML5)
- Creating Discord Activities
- Working anywhere with CMake
- CMake Build Options
- raylib templates: Get started easily
- How To: Quick C/C++ Setup in Visual Studio 2022, GCC or MinGW
- How To: C# Visual Studio Setup
- How To: VSCode
- How To: Eclipse
- How To: Sublime Text
- How To: Code::Blocks