Skip to content

Setting up VSCode

Franz Miltz edited this page Aug 18, 2021 · 2 revisions

Unlike purpose-built IDEs like CLion, Visual Studio Code is not specifically designed to develop C++ applications. It does, however, provide a framework to build the editor you want for the programming language you choose.

We will give a short overview over the setup we recommend.

Opening a project

There are two ways to open a project with VSCode.

  1. You can start the application it self and then use the menu bar to run File > Open <your choice> to open files, folders and workspaces.

  2. Alternatively, you can use the command line to run

    $ code <your choice>
    

In the HYPED repositories we have a file called hyped.code-workspace. If you tell VSCode to open this, you will be able to make use of a few configurations we have set up to suit our project.

Installing Extensions

Visual Studio Code has a wide variety of extensions. You can get anything from colour schemes, over keybindings emulating other editors to fully fledged IDE setups.

The C/C++ Extension Pack should cover all your development needs.

Besides this, here are a few more that might make things easier for some of you:

Clone this wiki locally