Skip to content

Tag: visual-studio-code

how to activate virtual env in vs code?

I cant activate virtual env in vs code. I tried same code in the cmd console is work but not in the vs code terminal. “D:pythondjangoappdjangovenvScriptsactivate.bat” I write this code. I am using windows 10 pro Answer yeah Its beacuse of terminal vs code was using powershell ı changed with cmd

How to fix pylance syntax highlighting showing wrong color for self and cls python class parameters in VSCode with enabled default theme

I have encountered this issue when I use Pylance and syntax highlighting is enabled for python in the VSCode with default or the visual studio theme. self and cls parameter are LightSkyBlue color like other parameters It should be like this: Answer Added the color code inside of the settings.json file for the…

VSCode does not recognize venv

When I create a new project and the virtual environment using the venv python package, VSCode doesn’t recognize the new virtual environment. I follow the bellow instruction: https://code.visualstudio.com/docs/python/environments The command that I use in the VSCode integrated terminal is: python -m venv…