[VS Code] Cannot read keys when either application does not have a console or when console input has been redirected. Try Console.Read.

  在VS Code运行C# Console程序报错。

 

原因:

 

   解决方案:

  1.打开launch.json.

 

 2.修改  "console": "internalConsole"  --> "console":"integratedTerminal".

 

posted @ 2022-11-24 09:05  WikiChen  阅读(637)  评论(0编辑  收藏  举报