VSCode:如何在终端而不是弹出/选项卡中询问密码? [英] VSCode: How to ask for password in terminal instead of pop-up/tab?

查看:65
本文介绍了VSCode:如何在终端而不是弹出/选项卡中询问密码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我和我的学生一直在使用带有LiveShare扩展名的VSCode进行远程结对编程.以前,当推送到远程存储库时,需要在终端中输入密码,我们可以共享该密码,这正是我们想要的.

My students and I have been doing remote pair programming with VSCode with the LiveShare extension. Previously, when pushing to remote repositories, the password would be requested in the terminal, which we can share and is what we want.

现在,我大约有一半的学生得到此弹出窗口和房东的远程伙伴无法访问输入字段以自己输入密码.

Now about half of my students are getting this pop-up and the host's remote partner cannot access the input field to type in their password themselves.

这当然引起了密码安全性的担忧,因此我正在寻找一种方法来还原此行为,以在内置终端中请求密码,而不是VSCode弹出式窗口/模式/无论该东西是什么.

This of course raises concerns of password security, so I'm looking for a way to revert this behavior to request the password in the built-in terminal instead of a VSCode pop-up/modal/whatever that thing is called.

其他信息:我们使用的是HTTPS,而不是SSH.如果可能的话,我们最好不要使用SSH.

Additional information: we're using HTTPS, not SSH. We would prefer to not us SSH if possible.

我一直在尝试在Internet上找到答案,但是大多数问题/解决方案都涉及SSH,或者正在寻求消除使用密码的需求,并且没有解决要求输入密码的弹出窗口的问题.我还浏览了VSCode中的设置,但找不到有关此行为的任何信息.

I've been trying to find answers on the internet, but a majority the questions/solutions involve SSH or are looking to remove the need to use passwords, and does not address the pop-up that requests the password. I've also looked through the settings in VSCode, but I couldn't find anything regarding this behavior.

推荐答案

在vscode中,打开设置编辑器

In vscode open the settings editor

File > Preferences > Settings

搜索终端身份验证,然后取消选中.

还搜索 Git身份验证,然后取消选中.

Also search for Git Authentication and uncheck.

这篇关于VSCode:如何在终端而不是弹出/选项卡中询问密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆