F
F
F582020-07-28 13:02:03
macOS
F58, 2020-07-28 13:02:03

How to work with C++ in vscode on MacOS?

How to create a c++ project and run it in vscode on mac?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Chernyakov, 2020-07-28
@Kubatai

VS Code as such does not know how to create projects, since it is just a text editor with extensions, and not a full-fledged development environment.
To work with a new project, the algorithm is something like this:

  1. install clang
  2. Install C/C++ extension for VS Code
  3. Create an empty directory
  4. Open it via VS Code
  5. Create *.cpp files in open workspace

More details here:
https://code.visualstudio.com/docs/cpp/config-clang-mac

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question