user14822850
user14822850

Reputation:

How to configure Code Runner to use Visual C++ compiler?

I only have visual c++ installed. Do I need to change the executor map? If so, what is the command?

Upvotes: 0

Views: 1956

Answers (1)

Vinamr Bajaj
Vinamr Bajaj

Reputation: 11

1.)Install the Code Runner Extension
2.)Open your C++ code file in Text Editor, then use shortcut Ctrl+Alt+N, or press F1 and then select/type Run Code, or right click the Text Editor and then click Run Code in context menu, the code will be compiled and run, and the output will be shown in the Output Window.

Moreover, you could update the config in settings.json using different C++ compilers as you want, the default config for C++ is as below:

"code-runner.executorMap": {
    "cpp": "g++ $fullFileName && ./a.out"
}

Upvotes: 1

Related Questions