microsoft / vscode-cmake-tools

CMake integration in Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=vector-of-bool.cmake-tools
MIT License
1.43k stars 430 forks source link

The code in the main.cpp file generated using CMake: Quick start is C code #3856

Open v-frankwang opened 5 days ago

v-frankwang commented 5 days ago

Brief Issue Summary

More info: This issue has been reproduced since CMake Tools:v1.18.41

Repro Steps:

  1. Create a new folder named 'Test' and open it with vscode.
  2. Run command: “CMake:configure
  3. Enter a name for new project :'Helloworld'
  4. Select 'C++'
  5. Select 'Executable'
  6. Select "CPack"and click OK.
  7. Open main.cpp file

Expected result: Expected result

Actual result: Actual result

CMake Tools Diagnostics

No response

Debug Log

No response

Additional Information

No response