在 VSCode 中切换文档字符串的命令 [英] Command to toggle docstring in VSCode
问题描述
我必须在 VSCode 中使用什么命令来切换文档字符串?
What command do I have to use in VSCode to toggle the docstring?
我在设置中搜索了 docstring,帮助但没有显示任何有意义的内容.
I have searched in settings for docstring, help but nothing that makes sense shows up.
推荐答案
你可以按 Ctrl + K Ctrl + I.这将执行 editor.action.showHover
命令,并将显示与悬停在某个函数上时显示的相同文本.不幸的是,似乎没有对应的editor.action.hideHover
命令(我搜索了keybindings.json
).但是应该可以通过按 Esc 键再次隐藏文本.
You can hit Ctrl + K Ctrl + I. This will execute the editor.action.showHover
command and will display the same text that is displayed when you hover over for example a function. Unfortunately there seems to be no corresponding editor.action.hideHover
command (I searched the keybindings.json
). But it should be possible to hide the text again by pressing the Esc key.
这篇关于在 VSCode 中切换文档字符串的命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!