Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the meaning of `f` and `m` in PyCharm auto-completion?

Tags:

python

pycharm

In the PyCharm, the auto-completion there are f and m.

What's the meaning of f and m?

enter image description here

Does the f means function?

like image 222
qg_java_17137 Avatar asked Apr 25 '18 12:04

qg_java_17137


People also ask

How does PyCharm autocomplete work?

PyCharm automatically adds an import statement when you refer any module member or package in the Python code and invoke code completion. Auto-import on code completion is also applied to some popular package name aliases, such as np for numpy or pd for pandas .

What is the shortcut key in PyCharm to auto complete?

The suggestion list of Automatic completion appears as soon as you start typing a new identifier. The suggestion list of Basic completion appears when you press Ctrl+Space .

What does V mean in PyCharm?

'V' means variable. Checkout the pycharm symbol guide as a reference. Remember that in python you can store methods/functions in variables.

Why Autocomplete is not working in PyCharm?

You need to go into the project settings and configure the interpreter to point at the virtualenv. PyCharm will then index the interpreter and allow you to autocomplete. The virtualenv may be auto-detected in the dropdown menu on the left.


2 Answers

If f is in yellow and in small letters, it's field. In pink and in capital letters it's function.

m is method

To know more take a look here: https://www.jetbrains.com/help/pycharm/symbols.html

like image 63
Vikas Periyadath Avatar answered Oct 05 '22 01:10

Vikas Periyadath


This is the symbol for the type. A complete list may be found in PyCharm's docs:

c: class
f: field
F: function
m: method
p: parameter
P: property
v: variable
like image 33
aircraft Avatar answered Oct 05 '22 02:10

aircraft