Search code examples
pythonvisual-studio-codepylint

How to show pylint message codes in VScode?


Anyone know how to show pylint message code in the problem section?

python linting example

It only shows descriptions, not the codes like F821 and E0601.


Solution

  • Unfortunately, VS Code has hardcoded the pylint --msg-template argument as:

    --msg-template='{line},{column},{category},{symbol}:{msg}'

    and cannot be configured. You can view the VS Code source code for this.

    For more info, see How to change pylint message template in VS Code linter?