Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当通过 showInputBox 显示具有默认值的输入框时,Visual Studio 代码显示选择了默认值的输入框。有没有办法取消选择默认值并将光标放在字符串的末尾?
在显示输入框之前是否触发了事件,我可以在其中取消选择默认值?
谢谢
你可以有一个占位符,但你要求的东西是不可能的。
作为一种解决方法,您可以提供一个默认值,如“-”,它将在列表中的第一个。选择它可能会中止或重复该命令。