Want to show function arguments (like the "arguments" that show up in Excel when one types a formula) in any python IDE:
type:
=find()
# and this pops up:
=find(find_text, within_text, [start_num])
you will get all your arguments, in the appropriate order, right away! no need to recall 10000000 formula's syntaxes!
In Excel, we see a series of parameters for the FIND
function that are very helpful; syntax, variable requirements, so forth. I want to do this in Pycharm/python too;
suggestions?
Tried googling, searching in pycharm/s options. Is this just not feasible in Python?
thanks
In PyCharm:
Type the name of the function with the brackets
()
, and then place your cursor inside the brackets and type Ctrl + P; This will show your the parameters for the function.Here is a short gif showing this:
In VSCode
Vscode uses the same keyboard shortcut as IntelliJ (and by extension, Pycharm). If the shortcut does not work, you can install the key bindings extension here
Example:
In a REPL
Open a python repl and type:
Where
object
can be the name of a function or class, or any object as the name suggests.Ex:
The help page pops up and you can read any documentation associated with the object.