vscode-tasks

How do I set up Visual Studio Code to compile C++ code?

╄→гoц情女王★ 提交于 2019-11-26 02:05:02
问题 Microsoft\'s Visual Studio Code editor is quite nice, but it has no default support for building C++ projects. How do I configure it to do this? 回答1: There is a much easier way to compile and run C++ code, no configuration needed: Install the Code Runner Extension 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