whatever356's blog

By whatever356, history, 5 weeks ago, In English

I use vscode for compiling and running my C++ program.I use code runner extension for this purpose.Now I have come to know that this extension is using C++98 to run my code. Now How can I enable c++17 and also add some of my favourite flags ? I am using Ubuntu 20.04

  • Vote: I like it
  • +1
  • Vote: I do not like it

5 weeks ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

press ctrl+shift+p

type "settings"

click on "Preferences: Open Settings (JSON)"

search for "code-runner.executorMap"

you can modify the command they use in the "cpp" section

Done, now you just add the flags you want right after the call of g++ and the file name