Home > Software design >  "Enter" doesn't work in VS Code for Python
"Enter" doesn't work in VS Code for Python

Time:12-08

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?

CodePudding user response:

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.

CodePudding user response:

Search Enter in Keyboard Shortcuts and see if your wanted one is list there:

enter image description here

If not, search with your wanted effect that enter brings and see if you changed the keybindings, which you can see your customization in keybindings.json.

Or disable the third-party extension but only keep Python.

If the above don't work, you may reset VS Code.

  • Related