Skip to main content
Home
  • Tutorials
  • SEO
  • AI
    • How to write an AI prompt
    • GenAI Roadmap for Beginners
  • Crypto
  • Web
    • Sample resume
    • Resume builder
    • Download movies for free
    • Download paid sotware for free
  • Python
  • langchain
  • HTML
  • CSS
  • JavaScript
  • Algorithm
  • DSA
  • PHP
  • Docker

Breadcrumb

  1. Home
  2. Python

Configure Python with VS Code

Profile picture for user admin
By admin , 2 March, 2022

Step 1: Download the latest version to Install from official website https://visualstudio.microsoft.com/downloads/.

Step 2: Go to extension icon and search Python and enabled the extension.

extension

Step 3: Verify and select correct Python version in VS.

 open your .py file and see below in status bar

path

Step 4: Set file Execution In current File Dir.

Go to File->Preferences->settings and search "Execute In File Dir" make sure you have checked box .

Step 5: Set Customize Run and Debug for current working directory.

click on create a launch.json file and choose "Python File"  and add  lines at bottom 

 "cwd": "${fileDirname}",

cwd

About text formats

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.

Book navigation

  • Code Standards in Python
  • Installing Python
  • Python Classes
  • Python Conditional structure
  • Python Data Types
  • Python History
  • Python Loops
  • Python Variables
  • Python functions
  • Working with Files
  • Python Comments
  • Configure Python with VS Code
RSS feed
Section
  • Home
  • Features
  • Pricing
  • FAQs
  • About
About
  • Advertise With Us
  • Disclaimer
  • About Us
  • Contact Us
  • Privacy Policy
  • Terms & Conditions
  • Sitemap
Section
  • Home
  • Features
  • Pricing
  • FAQs
  • About
Newsletter signup
The subscriber's email address.
Manage your newsletter subscriptions
Select the newsletter(s) to which you want to subscribe.
Stay informed - subscribe to our newsletter.
Manage existing

© 2022 - 2024 techbrushup.com. All rights reserved.