Tags→ #VSCode
-
Disabling DJLint on non-Django projects
Finally found out how to stop the annoying "djLint is not installed for the current active Python interpreter" modal window on VSCode.
-
Changing python version in a running VSCode project
I was working on a python project with 3.11, and then found out I needed to upgrade to 3.12. Tried to deactivate my current venv, but VScode wouldn't let me - it threw a "Permission denied" error. The solution was pretty straightforward.
-
Pygraphviz Woes on M1 Mac: Docker to the Rescue
I was trying to install pygraphviz on my M1 laptop using pip, but I found it impossible. Luckily the Dev Container VSCode extension allows me to use it with docker.
-
Stopping cSpell from using .gitignore
cSpell is a spelling plugin for VS Code. Not my favourite, but the only one I found. It isn't particularly well documented though. It avoids spell checking files in .gitignore. To stop that, you need to add
"cSpell.useGitignore": false,
to your settings -
Fixing autoformatting Django templates in Visual Studio Co
Prettier autoformatting screws up Django html templates in Visual Studio Code. For example, it puts tags on the same line when they shouldn't be. The fix is pretty simple and involves a couple of different formatting extension.