mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
added useful links to VS Code .. Code project folder zip download helper added .. path settings suggestions added ..
@ -1,10 +1,21 @@
|
||||
VSCode is an excellent choice of code editor when it comes to raylib. Getting set up with a new VSCode project is easy.
|
||||
[_VSCode_](https://code.visualstudio.com/) is an excellent choice of code editor when it comes to raylib. Getting set up with a new VSCode project is easy.
|
||||
|
||||
### Step 1
|
||||
Copy the VSCode folder (and all its contents) from raylib/projects/VSCode to your desired project location. These files can also be found [here.](https://github.com/raysan5/raylib/tree/master/projects/VSCode)
|
||||
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.](https://github.com/raysan5/raylib/tree/master/projects/VSCode).
|
||||
|
||||
**Note**: You can use this [Zip Tool](https://kinolien.github.io/gitzip/) to download only the VSCode folder as a zip.
|
||||
|
||||
### Step 2
|
||||
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.
|
||||
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.
|
||||
|
||||
### Step 3
|
||||
Install the "C/C++" VSCode extension.
|
||||
|
||||
Reference in New Issue
Block a user