From b1ab6db4115cbab849709369c0753c3652b6bdd2 Mon Sep 17 00:00:00 2001 From: Faisal rasak Date: Tue, 4 Dec 2018 18:45:21 +0530 Subject: [PATCH] added useful links to VS Code .. Code project folder zip download helper added .. path settings suggestions added .. --- Using-raylib-in-VSCode.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/Using-raylib-in-VSCode.md b/Using-raylib-in-VSCode.md index 4f0461d..48e84b0 100644 --- a/Using-raylib-in-VSCode.md +++ b/Using-raylib-in-VSCode.md @@ -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.