Skip to content

CS380S23-PACU/GraphT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ in VS Code on Mac, Windows, Linux

Make sure your set the platform correctly on the bottom right of the VS Code window.

Commands:

F5: Start Debugging (works)

Control-F5: Start without Debugging (works WINDOWS, not working MAC, output shows up in DEBUG CONSOLE)

Not sure if Start without Debugging should work

Control-Shift-B: Build (works)

Terminal | Run task | clean (works, calls make clean)

Mac:

Use built in gcc/llvm and debugger:

Linux:

Use built in gcc and debugger

Windows:

current test: using Visual Studio Build Tools (cl, nmake)

  • BUILD: WORKING
  • DEBUG: WORKING
  • Set up debug console correctly : microsoft/vscode-cpptools#6794
  • lauch.json: "console": "integratedTerminal", Works on all platforms.
  • If the VS Build Tools are installed in Program Files x86, edit intelliSenseMode in c_cpp_properties.json to be windows-msvc-x86

Git: Git For Windows Not the Portable Install

  • Do you need to install Git strictly AFTER VS Build Tools? Maybe

Which is the easiest compiler tool chain for students to install/use on Windows?

Codespaces

  • This repository contains a custom container that installs enscript and ghostscript to easily print source code
  • Students can run make -f Makefile_linux printAll to print the code to bin/src.pdf.
  • Students can then Right Click on src.pdf and download the PDF locally

Notes

Git

You can use key bindings to provide the not working Ctrl-F5 Start without Debugging feature:

keybindings.json:

  {
    "key": "Ctrl+F5",
    "command": "workbench.action.tasks.runTask",
    "args": "runMe",
    "when": "!inDebugMode"
  }

Create a runMe task in tasks.json which calls the correct Makefile to build and run the executable.

Note that keybindings are a per user setting, not a per project setting.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published