This extension provides autocompletion for self
and cls
parameters in Python class methods in Visual Studio Code.
- Automatically suggests
self
as the first parameter when you start typing a Python instance method. - Automatically suggests
cls
as the first parameter when you start typing a Python class method decorated with@classmethod
. - Does not suggest any parameters for Python static methods decorated with
@staticmethod
.
- Install the extension in Visual Studio Code.
- Open a Python file.
- Start typing a Python class method. The extension will automatically suggest
self
orcls
as the first parameter.
- Visual Studio Code 1.80.0 or later.
- Python extension for Visual Studio Code.
Please report any issues on the GitHub repository.
Fix a little bug.
Contributions are welcome! Please submit a pull request on the GitHub repository.