No indent after colon in python
Affected version
- Nightly flatpak: Yes
- Other: Flatpak, Version 43.6, Pop!_OS 22.04
Steps to reproduce
- Write Python code
- Put a colon at the end of a line, for instance in
def
,while
orif
, and pressEnter
. - The new line is not automatically indented 4 spaces.
Current behavior
After typing a line that ends with a colon, one would expect the next line to be indented by 4 spaces, because usually after typing something with a colon (def
, while
, or if
), the code following is meant to be in that loop/function/etc. Currently the following line is kept on the same indentation level as the line containing the colon.
Expected behavior
When creating a new line after a one ending with a colon, it should be indented automatically.
Additional information
None