davfsa
davfsa

Reputation: 21

Not automatically lintering with the python interpreter (Python Extension)

I recently installed VScode on Ubuntu, and now it doesnt automatically linter the code using the python interpreter (as it did on Windows). This is really annoying me because I have to save the file every time I want it to linter.

Any answers are greatly appreciated

If you need more info, just let me know and I will provide it

Upvotes: 0

Views: 401

Answers (2)

davfsa
davfsa

Reputation: 21

There is a setting called Python: Jedi Enabled(looks like this). If you switch if off and then restart VSCode, the issue should be fixed

Upvotes: 0

dejanualex
dejanualex

Reputation: 4356

By default, linting for Python is enabled in Visual Studio Code using Pylint, and you can enable other linters of your choice. You can easily enable and disable all linting by using the Python: Enable Linting command. Also you can verify your linting settings:

  1. Go to Settings and check the which linting rules you have enabled :

enter image description here

  1. Go to Command Palette and check if the linter is enabled:

enter image description here

More info: https://code.visualstudio.com/docs/python/linting

Upvotes: 1

Related Questions