gpt4 book ai didi

visual-studio-code - vscode扩展如何显示表单

转载 作者:行者123 更新时间:2023-12-03 17:08:08 26 4
gpt4 key购买 nike

我希望创建一个带有输入表单的 VSCode 扩展 - 某种输入方式。到目前为止,我只看到了扩展的文档处理或输出。

如何在 vscode 扩展中显示输入字段的形式?

最佳答案

他们需要输入多少数据?如果不是很多,你应该可以用一系列的 InputBoxes 来处理它

来自 https://code.visualstudio.com/docs/extensionAPI/vscode-api

showInputBox(options?: InputBoxOptions): Thenable<string>

Opens an input box to ask the user for input.

The returned value will be undefined if the input box was canceled (e.g. pressing ESC). Otherwise the returned value will be the string typed by the user or an empty string if the user did not type anything but dismissed the input box with OK.

Parameter Description
options?: InputBoxOptions
Configures the behavior of the input box.

Returns Description
Thenable<string>
A promise that resolves to a string the user provided or to undefined in case of dismissal.

关于visual-studio-code - vscode扩展如何显示表单,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36705126/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com