Auto-format python code with CTRL+K/CTRL+D fails randomly with error "Value must not be NULL. Parameter name: replaceWith"
Roland
1
Reputation point
I am using Visual Studio 2022 Community for Python development on Windows. The auto-format option (called by CTRL+K/CTRL+D) is very helpful, but fails sometimes for some python-files in my project with the error "Value must not be NULL. Parameter name: replaceWith". I can only acknowledge that error by pressing "OK", but after that the corresponding file is write-protected. To be able to work on it again, I have to close it and re-open it. What is the reason for that error? It is difficult to reproduce, and only happens for a few of the python-files in my directory.
Thanks!
Developer technologies Visual Studio Other
5,451 questions
Sign in to answer