Skip to content

Latest commit

 

History

History
37 lines (21 loc) · 2.53 KB

VSCode.md

File metadata and controls

37 lines (21 loc) · 2.53 KB

VS Code for HPPS

If you prefer an integrated development environment (IDE) for implementing and debugging the assignments in HPPS you an use the free cross-platform VS Code IDE from Microsoft.

Note: There is another product named Visual Studio which is an entirely different product.

You can install VS Code via Microsoft or through your favorite package manager.

Tools for C

To get syntax highlighting and debugging support for the C programming language that we use, install the MS C/C++ extension.

You can search for ms-vscode.cpptools inside VS Code's package manager to get it set up. If you have a supported debugger set up on your system, it will work right away. If debugging does not work, try the guide to configuring and choosing the debugger.

An alternative is to use the CodeLLDB extension which supports the LLDB debugger.

Docker for non-Linux machines

As some of the assignments are related to the operating system details, it can be required that you use a Linux-like operating system. For Windows that means using the Windows Subsystem for Linux which provides an emulation layer.

Another option, that works on all operating systems, is to use Docker to get a fully configured Linux distribution, complete with debugger and compiler.

This option can be integrated into VS Code with the Remote Containers extension.

There is a guide to setting up Docker and a working VS Code integration in a few steps. Once the integration is set up, you can compile and debug entirely within the Docker instance, and not worry about installing compilers, libraries or debuggers in the host system.

Tools for Python

Some of the assignments suggest using Python, which you can get support for by installing the Python extension for VS Code.

Source control and versioning

We will not cover version control system, but since you will be working in groups, you may want to use Git, which is supported by VS Code without the need for extensions.