Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Enter" doesn't work in VS Code for Python

I installed Anaconda. Somehow, afterwards, when I press Enter in Python files, it no longer works. This error shows up:

command 'pythonIndent.newlineAndIndent' not found

How do I solve this problem?

like image 397
Di Jia Avatar asked May 08 '26 17:05

Di Jia


2 Answers

I had the same problem. I solved the problem by uninstalling an extension called "Python Indent"

like image 197
Lithi Avatar answered May 10 '26 07:05

Lithi


Try checking your keybindings.json file, also disable all VS Code extensions and install them one by one. Maybe it's caused by some buggy extension.

like image 27
senarijit1618 Avatar answered May 10 '26 07:05

senarijit1618



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!