My goal is to change the pylint message template for the linter messages in VS Code. I'm using the standard "Python" extension for VS Code from Don Jayamanne, that is now maintained directly by Microsoft. By default the message format reads as follows (with a simple whitespace message as an example):
[pylint] C0303:Trailing whitespace
I would like the message instead to read with the pylint message symbol instead of the code (example "C0303"). I prefer the human-readable symbols over the codes. In my opinion easier to work with when disabling certain messages, etc. So, something like this would be preferred:
[pylint] Trailing whitespace (trailing-whitespace)
Here are a few things I have tried so far that haven't worked.
Using .pylintrc file to modify the msg-template=
line
I set this line in my .pylintrc file:
msg-template='{msg} ({symbol})'
My changes were reflected when running pylint through a separate terminal outside of VS Code, but not in VS Code. I tried reloading the VS Code window, also, and this had no effect.
Specifying python.linting.pylintArgs
in User Settings:
The next thing I tried was setting the option for pylint in VS Code user settings, also with no effect:
"python.linting.pylintArgs": [
"--msg-template='{msg} ({symbol})'"
]
Ensuring the correct pylint was being used
Finally, I double checked to make sure I didn't have anything strange going on with the path where VS Code was looking for pylint. I did not see anything out of order, as my setting had not been changed from the default:
"python.linting.pylintPath": "pylint",
Any ideas would be appreciated. VS Code is a newer editor for me, and I wasn't sure what my next step might be in troubleshooting this. Thank you!