kbrawley95 / Visual-Studio-Code--C-Plus-Plus-Starter-Project-

This repo contains a basic vscode project configured for compiling C++ console applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


INSTRUCTIONS

This repo is tailored to who wish to get started with VSCode(specifically configured for C++ Applications). Included is a template project (with the relevant C++ extensions installed), a MinGW directory (Compilers, dependencies etc), and a portable version of the Visual Studio Code Editor (Visit:https://github.com/garethflowers/vscode-portable/releases/tag/v1.8.1 for latest versions).

Make sure you have the MinGW directory added to your system path. This can be achieved through the following Command Prompt Sequence:

set PATH=C:\MinGW\bin;%PATH% Change path to your actual location of the directory

While provided, as a sanity check, you may wish to ensure these extensions are installed:

C/C++
Include Autocomplete

Additionally, make sure all compatible Microsoft C++ Redistributions are installed correctly. This can be achieved by going to the Microsoft support page [http://www.microsoft.com/en-us/download/details.aspx?id=48145], or installing a Windows supported game.

Finally open the project folder with vs code and press F1 Then type 'run task' and click 'Run Task'. Select 'Build' from the menu. Alternatively, you can debug the project by pressing F5 (CTRL + F5 run without debugging).

Your project should now be setup properly.

UPDATES (Most Recent First):

  1. The Template Project is now configured to generate an opengl context bound to a SDL2 window.

  2. The following popular OpenGL libaries (SDL2, GLM, GLEW) have been added.

  3. Ensure that your editor is using the approrpiate integrated terminal by default. This can be set through File-->Preferences-->Settings and adding one of the following configuration to your settings.json file:

64-bit cmd if available, otherwise 32-bit
"terminal.integrated.shell.windows": "C:\Windows\sysnative\cmd.exe"

64-bit PowerShell if available, otherwise 32-bit
"terminal.integrated.shell.windows": "C:\Windows\sysnative\WindowsPowerShell\v1.0\powershell.exe"

Git Bash "terminal.integrated.shell.windows": "C:\Program Files\Git\bin\bash.exe"
>
Bash on Ubuntu (on Windows) "terminal.integrated.shell.windows": "C:\Windows\sysnative\bash.exe"<br/


For more information on the materials provided, refer to the sources below:

VS Portable: http://gareth.flowers/vscode-portable/
MinGW (Minimalist GNU for Windows): http://mingw.org/
Debugging: http://code.visualstudio.com/docs/editor/debugging
Integrated Terminal: https://code.visualstudio.com/docs/editor/integrated-terminal
Tasks: http://code.visualstudio.com/docs/editor/tasks
OpenGL Documentation: https://www.opengl.org/

About

This repo contains a basic vscode project configured for compiling C++ console applications


Languages

Language:C 20.4%Language:Perl 19.8%Language:C++ 18.6%Language:Ada 18.1%Language:Vim Script 9.0%Language:TeX 2.6%Language:M4 2.4%Language:Shell 2.3%Language:HTML 1.9%Language:Scheme 1.6%Language:Prolog 0.8%Language:JavaScript 0.7%Language:Perl 6 0.7%Language:Python 0.2%Language:Pascal 0.2%Language:Makefile 0.1%Language:PostScript 0.1%Language:XSLT 0.1%Language:Smarty 0.1%Language:Roff 0.1%Language:Objective-C 0.1%Language:Emacs Lisp 0.0%Language:Ruby 0.0%Language:SystemVerilog 0.0%Language:CSS 0.0%Language:Smalltalk 0.0%Language:Awk 0.0%Language:Lua 0.0%Language:Batchfile 0.0%Language:Logos 0.0%Language:Yacc 0.0%Language:Tcl 0.0%Language:AppleScript 0.0%Language:GLSL 0.0%