Setting Up Your First Development Environment
Learn how to set up a development environment for coding: install Python, choose a code editor like VS Code, and configure essential tools for beginners.
What You'll Learn
By the end of this tutorial, you will have a working development environment with a code editor, Python installed, and the basic tools needed to write and run programs.
Why It Matters
A properly set up development environment removes technical friction. When your tools work correctly, you can focus on learning to code instead of fighting with configuration.
Real-World Use
Every developer at DodaTech uses a development environment tailored to their stack. The tools you set up today are the same tools professional developers use daily.
Your Learning Path
flowchart LR
A[What Is Programming] --> B[Dev Environment Setup]
B --> C[Terminal Basics]
C --> D[First Website]
D --> E[Choose a Language]
B --> F{You Are Here}
style F fill:#f90,color:#fff
Prerequisites: You should understand what programming is from the previous tutorial. On a computer where you have permission to install software (your personal machine).
What Is a Development Environment?
A development environment is the collection of tools you use to write and run code. At minimum, you need:
- A code editor â where you write your code
- A programming language runtime â something that runs your code
- A terminal â where you execute commands
Optionally, you might add version control (Git), package managers, and testing tools as you advance.
Step 1: Install a Code Editor
A code editor is like a word processor for code. It highlights syntax, auto-completes code, and helps you spot errors.
Recommended: VS Code
VS Code is free, works on Windows, macOS, and Linux, and is the most popular code editor among developers.
How to Install
| OS | Instructions |
|---|---|
| Windows | Go to code.visualstudio.com, download the installer, run it |
| macOS | Download the .zip, drag VS Code to your Applications folder |
| Linux | Use your package manager: sudo apt install code (Ubuntu/Debian) |
First-Time Setup
When you open VS Code for the first time:
- Click the Extensions icon on the left sidebar (four squares icon)
- Search for and install these extensions:
- Python (by Microsoft)
- Code Runner (by Jun Han)
- Go to File, Auto Save and enable "onFocusChange"
Step 2: Install Python
Python is one of the best languages for beginners. It is also used by professionals for automation, data science, and web development.
Check if Python Is Already Installed
Open your terminal (Command Prompt on Windows, Terminal on macOS/Linux) and type:
python --version
Or on some systems:
python3 --version
Expected behavior: You should see something like Python 3.10.x or Python 3.11.x. If you see a version number, Python is already installed.
Install Python on Windows
- Go to python.org/downloads
- Click the download button for the latest Python 3 version
- Run the installer
- Important: Check "Add Python to PATH" at the bottom of the installer
- Click "Install Now"
Install Python on macOS
The easiest way is to install Homebrew first, then Python:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install python
Install Python on Linux
sudo apt update
sudo apt install python3 python3-pip
Step 3: Verify Everything Works
Create a simple test to confirm your environment is ready:
# Create a new file called test.py
# Type or paste this code:
print("My development environment is working!")
print("Python version:")
import sys
print(sys.version)
Save the file as test.py on your desktop. Open a terminal and run:
python test.py
Or:
python3 test.py
Expected output:
My development environment is working!
Python version:
3.11.x (main, ...)
If you see the output above, your environment is working correctly.
Step 4: Organize Your Project Folder
Create a dedicated folder for all your coding projects:
# On the terminal:
mkdir ~/Projects
cd ~/Projects
mkdir first-project
Or use your file manager to create a folder called Projects in your home directory. Inside it, create a folder called first-project.
In VS Code, go to File, Open Folder and select your Projects folder. Now you can see all your projects in the VS Code sidebar.
Step 5: Install Git (Optional but Recommended)
Git tracks changes to your code and lets you save versions of your work. It is the standard tool for version control.
| OS | Instructions |
|---|---|
| Windows | Download from git-scm.com, run the installer with default options |
| macOS | brew install git |
| Linux | sudo apt install git |
Verify the installation:
git --version
Expected output:
git version 2.x.x
Common Mistakes Beginners Make
1. Not Adding Python to PATH on Windows
If you forget to check "Add Python to PATH," typing python in the terminal will not work. Re-run the installer and make sure that box is checked.
2. Installing Multiple Python Versions
Having Python 3.9, 3.10, and 3.11 at the same time causes confusion. Uninstall old versions and keep only the latest stable version.
3. Using a System-Wide Python Install for Projects
As you advance, use virtual environments (venv) to isolate project dependencies. But for starting out, the system Python is fine.
4. Not Using an Editor with Syntax Highlighting
Using Notepad or TextEdit to write code is possible but painful. Syntax highlighting shows keywords in different colors, making code much easier to read.
5. Saving Files Without the Correct Extension
A Python file must end in .py, not .txt. If you save test.txt, the computer does not know it is Python code. Make sure file extensions are visible on your system.
6. Running Code From the Wrong Directory
If your terminal is in a different folder than your code file, python test.py returns an error saying the file does not exist. Always check your current directory with pwd or cd to the correct folder.
7. Skipping the Terminal
Some beginners rely entirely on "Run" buttons in editors. Learning basic terminal commands makes you more productive and helps you understand how your tools work.
Practice Questions
1. What is the minimum set of tools for a development environment? A code editor, a programming language runtime, and a terminal.
2. Why should you add Python to PATH during installation?
It lets you type python in the terminal from any directory instead of navigating to the Python installation folder.
3. What file extension does Python use?
.py
4. What does git --version do?
It displays the installed version of Git to confirm Git is installed and working.
5. Challenge: Create a new folder called "hello-world" inside your Projects folder. Create a file called hello.py that prints "Hello from my development environment!" Run it from the terminal.
This is the exact workflow professional developers use every day.
Try It Yourself
Open VS Code and create a new file called about-me.py. Write a program that prints your name, your learning goal, and the date. Run it from the terminal.
name = "Your name here"
goal = "I want to build web applications"
date = "2026-06-22"
print("Name:", name)
print("Goal:", goal)
print("Date:", date)
Change the values to match your own information. This is your first custom program.
Built by the developers of Doda Browser, DodaZIP, and Durga Antivirus Pro.
Built by the developers of DodaTech
Doda Browser, DodaZIP & Durga Antivirus Pro