Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Question

Post Timeline

edited tags
Link
Cow
  • 3.1k
  • 6
  • 23
  • 45
Source Link
459zyt
  • 115
  • 1
  • 7

PyCharm2025 doesn't auto-indent after colon when editing code on remote server

I'm using PyCharm Professional, and I have an issue when editing Python code on a remote server.

On my local machine, when I type a colon (:) and press Enter, PyCharm automatically indents the next line by 4 spaces — as expected in Python after statements like if, def, class, etc.

However, when I connect to a remote server using PyCharm's remote development feature , this behavior stops working. After typing : and pressing Enter, the next line just starts at the beginning with no indentation.

I've checked:

I am using the same PyCharm version locally and remotely.

The project is recognized as a Python project.

I am editing files directly from PyCharm (not using a terminal editor like vi).

What could be causing this difference in behavior between local and remote environments? Is there a specific setting I need to sync or enable for auto-indentation to work remotely?

Thanks in advance!

lang-py

AltStyle によって変換されたページ (->オリジナル) /