prof-rossetti / intro-to-python

An Introduction to Programming in Python
Other
97 stars 244 forks source link

VS Code - Disabling the Squiggly Lines #54

Open s2t2 opened 4 years ago

s2t2 commented 4 years ago

Some students have asked about grammar / spell-check style red squiggles in their vs code text editor. This is due to pylint not being configured properly. To fix we can just turn off pylint. from the command pallete, "python > enable linting" then "current: off"

aaah that seems to be a local file fix. for a more permanent fix, go to settings:

Screen Shot 2020-08-19 at 12 05 43 AM
s2t2 commented 3 years ago

OK so there are also some yellow squiggles that will show up if a package is "not imported" but really what is happening is VS Code isn't using the conda environment by default. The squiggles will go away (and the play button will work!) if you...

Open the Command Pallete (Ctrl/Cmd + Shift + P) and type “Python: Select Interpreter”, and choose the conda environment you have created for the given project.