VSCode chcp无法更改

测试用代码

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(){
  char s1[50], s2[50];
  scanf("%s", s1);
  printf("%s\n", s1);
  strcpy(s2, s1);
  printf("%s", s2);
  return 0;
}

在测试前和测试后两次的chcp不一样,导致这个代码无法读取键盘输入的汉字,请问有什么解决办法吗

img

launch.json 里设置"externalConsole": true,使用外部窗口输入,调试的时候vs集成窗口经常输入不了。