VS Code显示Golang在线API文档的键盘快捷方式是什么?

huangapple go评论85阅读模式
英文:

VS Code keyboard shortcut to show online API document for golang?

问题

我正在使用VSCode和"Go for Visual Studio Code"以及Vim仿真插件来设置一个Golang IDE(键盘使用Vim风格)。

当我将鼠标悬停在一个API上时,可以显示在线API文档。
但是是否有一个可以触发API文档显示的键盘快捷键呢?

英文:

I'ms using vscode and "go for Visual Studio Code" and vim emulation plugin to set up a golang IDE (keyboard is using vim style)

When I mouse hover an API, the online API document can be displayed.
But is there a keyboard shortcut that can trigger the API document display?

答案1

得分: 1

你正在寻找editor.action.showHover的快捷方式:
默认的快捷键是:Ctrl+K Ctrl+I,但在启用vim时无效,所以你可以将其更改为例如:Ctrl+K Ctrl+K,这对我有效:

你可以通过转到菜单中的File > Preferences > Keyboard Shortcuts(Mac上的Code > Preferences > Keyboard Shortcuts)来打开此编辑器,
然后搜索Show Hover(或只搜索Hover)并更改editor.action.showHover的快捷方式,如下所示:

VS Code显示Golang在线API文档的键盘快捷方式是什么?

参考:
VS Code显示Golang在线API文档的键盘快捷方式是什么?

英文:

You are looking for editor.action.showHover shortcut:
The default key is: Ctrl+K Ctrl+I but not works with vim enabled, so you may change it to e.g.: Ctrl+K Ctrl+K, this works for me:

You can open this editor by going to the menu under File > Preferences > Keyboard Shortcuts. (Code > Preferences > Keyboard Shortcuts on Mac)
then search for Show Hover (or just Hover) and change shortcut for editor.action.showHover, see:

VS Code显示Golang在线API文档的键盘快捷方式是什么?

see:
VS Code显示Golang在线API文档的键盘快捷方式是什么?

huangapple
  • 本文由 发表于 2017年8月18日 14:44:50
  • 转载请务必保留本文链接:https://go.coder-hub.com/45750135.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定