python integration with git

As we have installed download git-bash, vscode and python. Now its time to integrate python git-bash with vscode.

  • Open the vscode
  • Click on extensions icon and type python in search box and select very first option of python which is recommended by Microsoft select and click on install button. python integration with git
  • After completion of installation, click on reload button.
  • After the completion of installation, you need to copy the following code

“”: “C:\\Program Files\\Git\\bin\\bash.exe”

  • Now on top-left corner click on file>preferences>settings
    On right side you will see a pane named as user settings u need to put that copied code between the { } . refer to following image .
    (note: in python {} are known as the placeholders). python integration with git
  • Now close all of the screens by click on X button, and press ”cntrl + ~” key to open terminal .
  • You can see in terminal, it will be displaying as bash. By default our shell is power shell.python integration with git
  • Here you can change your color theme by going to file>preferences>color themes.


Why we chose vscode only?

Like as we have already discussed there are lots of other IDE available, which are quite easy to use like pycharm or Jupiter notebook. But in normal scenario, we create a file in file explorer then create .txt file and change extension into .py and open them in our IDE. This is not a good practice for professional programmers. We are using vscode so that we can create file using linux terminal command and to save time from traditional scenario. linux is easy to use and friendly for professional programmers and gives you full control to use your pc And all the users can easily use in any Os. All of the commands will be same.

  • Like following example, We changed our drive by cd command then created file and running my file we will cover all commands in upcoming chapters. python integration with git


It is important to learn linux because every IT professional should have knowledge of linux basic commands. Most of the IT companies use linux in their companies.

Content Protection by
Please Share