1

例如,假设我有以下代码

const foo = "this is foo";

我想点击 foo 并按下一个键来注释一个类型

const foo: string = "this is foo";

Visual Studio 代码已经知道类型,因为当您将鼠标悬停在它上面时,它就在那里。我将如何进行键绑定?

4

1 回答 1

0
于 2021-10-27T18:45:19.687 回答