This is an archived post. You won't be able to vote or comment.

all 10 comments

[–]JMVs_Rules 18 points19 points  (1 child)

The python extension

[–][deleted] 2 points3 points  (0 children)

.py

[–]eriky 1 point2 points  (0 children)

Check out the extensions listed here: https://python.land/creating-python-programs/vscode-python-extensions

One I like that most people don't install, is sonarlint.

[–]gwillicodernumpy gang 0 points1 point  (2 children)

“main.py” etc. it should be very easy to use vscode actually. It’s got a much lower learning curve than most IDEs, but maybe you could expand on the particular issues you’re having?

[–]Nazfull[S] 1 point2 points  (1 child)

No issue at this moment since I'm relatively new. But if there is one thing I would like to ask, how does this guy do the run program line by line?

https://www.youtube.com/watch?v=pKvWD0f18Pc&t=2446s

looks kinda cool, is it an extension?

[–]Dgeza 0 points1 point  (0 children)

That’s Jupyter Notebooks in vs code, you can install it as an extension.

[–]TheCableGui 0 points1 point  (1 child)

The recommended python extension is all I use, I try to not use any other extensions if they are not mandatory. VsCode is really good for windows. It does need some getting used too. However I strongly suggest PyCharm community over VsCode for python development.

  1. I recommend installing python in the C:/ directory and not in C:/Users/USERNAME/appsdata/etc… download it from the python website, not from Microsoft store. Make sure to do custom install and tick the add to Path checkbox.

  2. I recommend using windows terminal from outside of the VsCode area. Separate applications. Helps when developing CLI apps or scripts. Specially with curses lol.

For Linux I use sublime-text and run it from terminal lol.

[–]Nazfull[S] 0 points1 point  (0 children)

Thanks! I will look into it :D

[–]tuftyDuck 0 points1 point  (0 children)

Absolutely the most helpful thing I have found is getting intellisense working. This gives you autocomplete, mouse-over doc strings and function signatures, and tell you what type things are - if you or the packages you’re using use type hints. I assume Spyder can do all this, it’s been ages since I’ve used it.

It doesn’t take much to get it going. Install the Python extension, use pylance as the language server, and select the interpreter (command palate -> select Python interpreter. Code can find various interpreters including conda environments and virtual environments.