use*_*803 5 visual-studio-code vscode-extensions
我希望创建一个带有输入表单的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.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3659 次 |
| 最近记录: |