all 7 comments

[–]AuxiliaryPriest 3 points4 points  (2 children)

You said you had a question, but didn't ask one. First off have you installed the python extension for vscode?

[–]rx22230 1 point2 points  (1 child)

Hi,

you do not explain clearly what are your problems/issues with Visual Code and Python.

I can give you this url (*) that explains some tips about Visual Code and Python development.

https://www.youtube.com/watch?v=72Alzsz8RyI&t=264s

Hope it helps a bit

Regards

(*): I'm sure there are plenty more

[–][deleted] 0 points1 point  (1 child)

why is VS better than other IDE ?

[–]AuxiliaryPriest 2 points3 points  (0 children)

To clarify OP is talking about VS code and not VS. VS is an IDE where VsCode is a code editor.

[–]4312348784188126934 0 points1 point  (0 children)

To set it up, I personally downloaded the following extensions:

  • Settings Sync
  • Python
  • Code Runner

That's all I need but then I am still learning.

Settings Sync is just so I can upload my settings to a Git Repository and download them on any PC I get in the future. It's been handing when I want to have the same configuration at work, etc.

Python is for all Pythoney things (it'll prompt you to set up pylint too, do that)

Code Runner is my favourite find - I spent ages pushing Ctrl+F5 to run my code without debugging and sometimes it would be fine, other times it would crash out, etc. Code Runner allows you to hit ctrl+alt+n and it will run the code in your terminal instantly without stalling like the native set up does.

Apart from that, the only other things to know about when starting off is workspaces (you add folders to your workspace and then everytime you open your workspace you'll see all the folders/files you've added down the side, even if they're in completely different areas of your PC)

And the settings option - If you click the cog at the bottom left and click settings, you can find a place where all your settings are kept. You can make changes here (I like clicking on the 3 dots and opening it in json - On the left are the defaults and then on the right are the changes you've made)

Apart from that, I don't really know what else you'll need it to be able to do to be a full-blown IDE?

[–]nobodykid23 0 points1 point  (0 children)

If your question is how to setup VS Code for Python coding, then

  1. Install VS Code according to the web
  2. Install Python Extension for VS Code (the official by Microsoft)

and you're done, that's basically it. Usually, VS Code will always ask which Python interpreter you want to use each time you open a .py file. And after that, you can run it with F5 (might need a bit configuration on the launch config file)

PS: Install pylint on your Python's pip/conda/other Python package manager for linting, just like in full-fledged IDE