1

I am new with Visual Studio and I have been looking for keyboard shortcuts but I can't find the one that would show me the doc of a function.

Sometimes it shows it automatically but for other functions don't do it and when you start writing it dissapear so you can't read it again in case you need it.

In jupiter notebook you can do that by pressing in a function CONTROL + SHIFT but there is nothing in Visual Studio and I think it's very handy when you are new.

Please, could anyone help me.

Thank you

Julio
  • 175
  • 1
  • 17
  • I think the hotkey you want is either `Ctrl+Space` for normal Intellisense, and/or `Ctrl+Shift+Space` for parameter Intellisense (e.g. to see what overloads are available in a method call which you've actually already filled in). copied from JonSkeets answer in the following post: https://stackoverflow.com/questions/145371/whats-the-default-intellisense-shortcut-in-vs2008 – David Tansey Feb 18 '21 at 04:48
  • Hello thank you for your quick response but it is not what I am looking for. What you said it's for auto writing and Intellisense but I am only looking for getting the description of a built-in function. For example, when writing "getattr()" I would like to see what it does, like a pop up text describing everything. Exactly the same description when you write "help(getattr) – Julio Feb 18 '21 at 05:03
  • What language are you using? – PMF Feb 18 '21 at 09:04
  • Python latest version. – Julio Feb 18 '21 at 11:01

1 Answers1

1

I'm not so familiar with Python, but I believe the command you need to invoke is Edit.QuickInfo, to show docs for the symbol under the caret.

enter image description here

In this screenshot you can see it is set to Ctrl+K, I on my machine. It may be different on yours. If you click on Edit.QuickInfo in the list of commands, it will show you what the shortcut is for your environment.

Drew Noakes
  • 300,895
  • 165
  • 679
  • 742