Choosing & Setting Up a Code Editor (VS Code recommended extensions, Python setup)

Now that Python is installed on your machine (great job getting that done in Port Harcourt!), let’s turn VS Code into your ultimate Python playground. VS Code is free, lightweight, super fast, and by far the most popular choice for beginners and pros alike in 2026 — especially for Python.

We’ll set it up step-by-step so you get IntelliSense (smart auto-complete), debugging, linting (error checking), and more right away. This should take 5–10 minutes.

Step 1: Download & Install VS Code (if you haven’t already)

  1. Go to the official site: https://code.visualstudio.com
    • It auto-detects your OS (Windows, macOS, or Linux).
  2. Download the installer → Run it → Follow the prompts (accept defaults; it’s safe and quick).
  3. Launch VS Code once installed. You’ll see a welcome screen — feel free to close any tips for now.

Step 2: Install the Essential Python Extension (by Microsoft)

This is the #1 must-have — it turns VS Code into a full Python IDE.

  1. In VS Code, click the Extensions icon on the left sidebar (looks like four squares, or press Ctrl+Shift+X / Cmd+Shift+X on Mac).
  2. In the search bar at the top, type Python.
  3. Look for the one published by Microsoft (it says “Python” with millions of installs — blue snake icon).
  4. Click Install.

What happens automatically:

  • It installs Pylance (super-fast IntelliSense & type checking — game-changer for beginners).
  • It may prompt/install Jupyter (for notebooks, useful later) and Python Debugger.
  • Restart VS Code if asked (or just reload the window: Ctrl+R / Cmd+R).

Step 3: Select Your Python Interpreter

VS Code needs to know which Python version/environment to use (especially if you have multiple installed).

  1. Open any folder/workspace:
    • File → Open Folder… → Create a new empty folder on your desktop (e.g., name it “PythonCourse”) and open it.
    • Or just create a new file: File → New File → Save as hello.py.
  2. At the bottom-right of VS Code (status bar), you’ll see something like “Python 3.14.3” or “Select Interpreter”.
    • Click it → A list pops up.
    • Choose the one matching your installed Python (e.g., Python 3.14.3 from python.org).
    • If it’s not listed: Click “Enter interpreter path…” and browse to your python.exe (Windows: usually C:\Users\YourName\AppData\Local\Programs\Python\Python314\python.exe; macOS/Linux: /usr/local/bin/python3 or similar).
  3. Test it: In your hello.py file, type:Pythonprint("Hello from VS Code in Port Harcourt! 🌴")
    • Hover over print — you should see smart info.
    • Right-click inside the file → “Run Python File in Terminal” (or press the green play button top-right).
    • Boom — output in the integrated terminal!

Step 4: Recommended Extensions for Python Beginners (Install These Next)

Install these from the Extensions sidebar (search by name). They’re lightweight and hugely helpful in 2026.

  1. Python (Microsoft) – Already done! Core everything.
  2. Pylance (Microsoft) – Usually auto-installed with Python extension. Gives lightning-fast auto-complete, error underlines, and type hints.
  3. Black Formatter (or use built-in with settings) – Auto-formats your code to PEP 8 style on save (clean & consistent).
    • After install: Settings (Ctrl+,) → Search “format on save” → Enable it.
    • Set “Python > Formatting: Provider” to “black” if needed.
  4. Jupyter (Microsoft) – For interactive notebooks (great for experimenting later in the course).
  5. GitLens – Supercharges Git (see commit history inline — useful when we push projects to GitHub).
  6. Better Comments – Makes # TODO, # NOTE, etc. colorful and standout.
  7. Error Lens – Shows errors/warnings right inline (next to code) instead of just in problems tab.
  8. Python Docstring Generator (optional but nice) – Auto-creates nice docstrings when you type “”” after a function.

Quick install tip: Search one, install, repeat. Avoid too many at first — start with the top 3–4.

Bonus: Make It Feel Like Home

  • Theme: Go to File → Preferences → Color Theme → Try “Dark+” or “GitHub Dark” (easy on eyes).
  • Font: Settings → Search “font” → Set “Font Family” to something nice like “Consolas” or “Fira Code” (download Fira Code for ligatures if you like fancy arrows →==).
  • Auto-save: Settings → “Files: Auto Save” → afterDelay (saves every few seconds — lifesaver).

You’re now fully set up! 🎉

Try this quick test file to see the magic:

Python

name = "Jeffmoniac"
age = 25  # Change this!

print(f"Hello, {name}! You're coding in VS Code like a pro. Age: {age}")

Run it → See auto-complete when typing print or f”.

Any issues? (e.g., interpreter not showing, extension errors?) Paste a screenshot or error message here we’ll fix it live.

Next lesson in the course: Your First Python Program – “Hello, World!” with a twist. Ready when you are! 🐍

What’s your OS again (Windows/Mac/Linux)? Did the Python extension install smoothly? Let’s keep the momentum going! 💪

code, program, programming language, web, source code, networking, screen, system, one, numbers, crash, zero, scripting language, functional, hacker, binary, information superhighway, monitor, file type, programming, binary code, keyboard, network, code, code, code, program, programming language, hacker, hacker, hacker, programming, programming, programming, programming, programming