1、点击Visual Studio Code左下角中更多设置菜单
2、弹出了下拉菜单选中为settings选项
3、点击左侧中git选项
4、去掉勾选上confirm sync选项
5、去掉勾选上confirm sync选项之后,会自动保存设置了