Build Python on Visual Studio Code

preview_player
Показать описание
on my Mac, the key combination are
CMD+SHIFT+P for Command Palette
CMD+SHIFT+B for Executing the program

on Windows
Ctrl+Shift+P to open the command palette
Ctrl+Shift+B to run the program
Рекомендации по теме
Комментарии
Автор

Being a long time user of Visual Studio for c/c++ during the MFC days, i thought that working with 'visualstudio code' should be a walk in the park. Took me a long time to figure things out, and the differences. For example, the typescript compiler depends on 'tsc' which depends on 'node'. In summary, the IDE is just a thin shell and it needs to work with externally supplied [com|trans]pilers, interpreters and hence, it takes time getting used to. This quick tutorial helps a lot thank you Eric.

dexteraparicio
Автор

Very nice video! Short and to the point.

polisciguy
Автор

For me, it doesn't find configure test runer

wookuzi
Автор

Great tutorial! However, when I try to import a library like statistics, for example, VS seems to look for it within Python2 paths, not where we had it pointed to in the workspace settings. Any workaround this one? thanks in advance.

AntonioSantos-vezv
Автор

Thanks for the video! I have a question: I am using some user input functions but this doesn't work (when I use python's original idle the code works fine). Can this be done in visual studio?
Thanks in advance!

sergioribeiro
Автор

Very usefull for beginners, thank you !

luigisgl
Автор

Great video ... em... may I ask ... how to get the 'configure task runner'?
coz only able to find the 'configure task' after pressing Ctrl, shift, P

Here's the setup ...
Win 7, VSCode zip archive version,
with VSCode setting.json, pythonPath pointing to created virtualenv Python 3.6.2

Many thanks...

clueple
Автор

Thank you, it's working for me! =)

rafaelmarvila
Автор

good video! one thing how do i configure the task

phazonicridley
Автор

Hi, nice tutorial. I have got windows 7, and I'm getting the following error message:
"python " is not recognized as an internal or external command,  operable program or batch file . Can you help me??

TheKratosmw
Автор

my code has some input functions that prompts for user input. The output panel does not allow me to enter any input/response. Is there any fix for that?

imentash
Автор

Thank you for the tutorial. It worked just as you described and I just needed to update `python.pythonPath` setting to run code with imports. However, my output window splits the screen horizontally which wastes a lot of space and I can't figure how to move it vertically. Can you share how you achieved that?

georgiana
Автор

+Eric Kwok, the tip you gave to Kratos worked here, thx bro. :)

TheMrsavio
Автор

This works for me on Ubuntu running on a Windows 7 machine. Eric, can you show us how to debug Python in Code?

paulschrum
Автор

Hi, I have a question: do we need a special plugins for runnig a python programs? Because, I rewrote all from your video, but it did not work.

sergeygrishin
Автор

i cannot even get the tasks.json file ....i followed the instructions presssed ctrl+shift+p and typed task but its shows no commands matching...pleasde help me!!

vedantkashyap
Автор

the intellisence is working on python on the vs Code?

frecio
Автор

I'm getting the following error message: 
     python: can't open file '{file}': [Errno 2] No such file or directory
I tried uninstalling and downloading from the website, but it still doesn't work, any suggestions?

polisciguy
Автор

Hi Eric, i imagine you had to set up Python interpreter with visual studio? Or did it come already set up?

VelezBiH
Автор

i'm got (Value is not accepted. Valid values:["2.0.0"]) please the solution master

gibranhikam
visit shbcf.ru