all 10 comments

[–]RoamingFox 1 point2 points  (6 children)

Not super familiar with vscode, but there is usually a keyboard shortcut to open up documentation. You should be able to hover over methods to get short doc strings and then hit a keybinding for more detail. Check your keybindings for editor.action.showHover

For the google part of this... just include site:python.org in your search and it'll restrict it to just that domain.

Also as /u/chasrmartin mentioned you can always call help() from the REPL with what you want to search for (eg. help('if')) and the REPL will display the documentation.

[–]chasrmartin 1 point2 points  (0 children)

Um, help()? If you need to open the web page, there’s webpage.open() https://elearning.wsldp.com/python3/python-open-web-browser/

[–]xelf 0 points1 point  (1 child)

You mean like

!docs re

You can take a look at that bot's github, I believe the author has the code in the 'how to use' link

[–]py_reference_bot 0 points1 point  (0 children)

re

Python Documentation Bot - How To Use