Hak*_*hin 35 visual-studio-code
我从Pycharm使用,可以按ctrl +单击一个函数定义,看看用途.在VSC中是否存在等价物?
小智 47
您可以使用shift + f12来更好地查看使用情况
https://github.com/Microsoft/vscode-tips-and-tricks
读这个,你可以得到更好的主意
有,但是VSCode不支持使用鼠标按键进行键绑定。相关问题是#3130。这意味着它的工作方式与PyCharm中的工作方式不同。
但是,您可以做的是使用-我相信- ShiftF12或设置一些组合键来显示功能的所有用法。
为此,您可以按CtrlK,然后CtrlS在句子中单击“ keybinding.json”链接:“要进行高级定制,请打开并编辑keybinding.json”。
越来越之后keybinding.json开放,还有添加以下条目。
{
"key": "ctrl+shift+d",
"command": "editor.action.referenceSearch.trigger",
"when": "editorHasReferenceProvider && editorTextFocus && !inReferenceSearchEditor"
}
Run Code Online (Sandbox Code Playgroud)
它应该使您通过按来显示功能的用法CtrlShiftD。显然,您可以根据需要自定义它。
我还建议添加以下条目以使用相同的组合键关闭对话框。
{
"key": "ctrl+shift+d",
"command": "closeReferenceSearch",
"when": "referenceSearchVisible && !config.editor.stablePeek"
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
34285 次 |
| 最近记录: |