0

When I use browser to open Jupyter notebooks, I can use Shift + Tab shortcut to get a python function doc string; however, in VSCode, that shortcut does not work. Does anyone know which shortcut gives me the docstring there?

I found this but cannot understand the suggested solution (what is Ctrl + K Ctrl + I ?)

amiref
  • 3,181
  • 7
  • 38
  • 62

2 Answers2

0

enter image description here

shows the keyboard shortcuts that have been set up and help below it will show you how to change what you want to change

Paul Brennan
  • 2,638
  • 4
  • 19
  • 26
0

When using VSCode in Windows, the default shortcut key for displaying the python function docstring is "ctrl+k ctrl+i". When using it, please place the mouse on the area of the python module or method that needs to be viewed (front or middle or back All works):

enter image description here

In addition, please check whether other shortcut keys of "editor.action.showHover" have been set in "keybindings.json".

Reference: Keybindings in VSCode.

Jill Cheng
  • 9,179
  • 1
  • 20
  • 25