https://github.com/pleft/sega_vscode_template
Setting up SGDK with Visual Studio Code
https://github.com/pleft/sega_vscode_template
Last synced: 12 months ago
JSON representation
Setting up SGDK with Visual Studio Code
- Host: GitHub
- URL: https://github.com/pleft/sega_vscode_template
- Owner: pleft
- Created: 2017-01-20T15:24:45.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-01-19T16:01:01.000Z (over 5 years ago)
- Last Synced: 2025-04-03T06:36:56.208Z (about 1 year ago)
- Language: C
- Size: 5.86 KB
- Stars: 42
- Watchers: 6
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.adoc
Awesome Lists containing this project
README
== Setting up SGDK with Visual Studio Code
This small project will help to setup a working environment (tested in Windows) for Sega Mega Drive developing with SGDK toolchain and Visual Studio Code as prefered editor. Visual Studio Code will be setup with c/cpp code extension and tasks to build and clean the workspace.
=== Prerequisites
. Download link:https://github.com/Stephane-D/SGDK[SGDK]
. Download link:https://code.visualstudio.com/[Visual Studio Code]
=== Setup
* Extract SGDK to a prefered directory.
* Create an environment variable `GDK` pointing to the SGDK directory (e.g. "C:/dev/sgdk").
* Install Visual Studio Code.
* Install the following extensions in vsCode: `C/C++ for Visual Studio Code`
* Clone this github repo: `git clone https://github.com/pleft/SEGA_VSCode_Template.git`.
=== Usage
* Open `VSCode` and `File->Open Folder...` and choose the folder of the checked out repository.
* Folder `.vscode` contains two files: `c_cpp_properties.json` and `tasks.json`
* In `c_cpp_properties.json` it is added the include folder of the `SGDK`: `"includePath": ["${GDK}/inc"]`
* In `tasks.json` there are 2 tasks to help build and clean the project, `make` and `clean`.
- To run `make` task press `Ctrl-Shift-B`.
- To run `make` or `clean` press `Ctrl-P` then write `task make` or `task clean`.