Setting Up Your Development Environment: A Complete Beginner's Guide
Setting up a development environment is one of the first hurdles every new developer faces. It can feel overwhelming when you do not know where to start. The good news is that you only need a few core tools, and once they are set up, you are ready to write code. This guide walks you through installing everything you need, whether you are on Windows, macOS, or Linux.
What You Actually Need
Before we get into installation steps, let us clarify what we are building. A basic development environment consists of three things:
-
Code Editor – This is where you write your code. Think of it as a smart notepad with helpful features.
-
Programming Language Interpreter – This translates your code into something the computer can run.
-
Version Control System – This tracks changes to your code so you can collaborate and revert mistakes.
For most beginners, we recommend starting with Visual Studio Code as your editor, Python or Node.js as your first language, and Git for version control.
Step 1: Install Your Code Editor
Visual Studio Code
Visual Studio Code is the most popular code editor for beginners and professionals alike. It is free, runs on Windows, macOS, and Linux, and has a huge library of extensions that make coding easier.
How to install:
-
Go to code.visualstudio.com
-
Download the installer for your operating system
-
Run the installer and click through the steps
Essential Extensions
After installing VS Code, open it and click the Extensions icon on the left sidebar. Search and install these:
-
Python by Microsoft – for Python development
-
Live Preview by Microsoft – to preview HTML pages in real-time
Start with just these two. You can always install more as you need them.
Step 2: Install a Programming Language
Option A: Python
Python is one of the most beginner-friendly programming languages. It is great for data science, web development, and automation.
Installation Steps:
-
Go to python.org/downloads
-
Download the installer for your operating system
-
On the first installer screen, check the box that says "Add Python to PATH"
-
Click "Install Now" and wait
Verify the installation:
Open your terminal (Command Prompt on Windows, Terminal on macOS or Linux) and type:
python --version
You should see something like Python 3.12.x. If you see an error, Python is not properly installed.
Option B: Node.js
Node.js lets you run JavaScript outside of a browser. It is essential for modern web development.
Windows Users: Open PowerShell and run:
winget install Schniz.fnm fnm use --install-if-missing 24
macOS and Linux Users: Use NVM (Node Version Manager):
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash
Restart your terminal, then:
nvm install --lts
Verify the installation:
node --version npm --version
Step 3: Install Git
Git is how you track changes to your code and collaborate with others. Think of it as version history for your entire project.
Windows (using built-in package manager):
Open PowerShell and run:
winget install --id Git.Git -e --source winget
Then close and reopen PowerShell, and verify:
git --version
macOS (using Homebrew):
First install Homebrew if you do not have it:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Then install Git:
brew install git
Linux (Ubuntu/Debian) :
sudo apt update && sudo apt install git
Configure Git
After installation, tell Git who you are. This links your name to every change you make:
git config --global user.name "Your Full Name" git config --global user.email "your.email@example.com" git config --global init.defaultBranch main
Verify your settings:
git config --list
Step 4: Connect Git to GitHub
An SSH key is like a digital passport that lets you securely connect to GitHub without entering a password every time.
Generate Your SSH Key
In your terminal, run:
ssh-keygen -t ed25519 -C "your.email@github.com"
Press Enter when asked for the file location and passphrase. You can skip the passphrase for now.
Copy Your Public Key
On Windows:
cat ~/.ssh/id_ed25519.pub
On macOS:
pbcopy < ~/.ssh/id_ed25519.pub
Add to GitHub
-
Go to github.com/settings/keys
-
Click "New SSH Key"
-
Paste your public key, give it a title like "My Laptop"
-
Click "Add SSH Key"
Test the connection:
ssh -T git@github.com
You should see a message like: "Hi your-username! You've successfully authenticated."
Step 5: Create Your First Project
Let us make sure everything works together.
1. Create a project folder
mkdir my-first-project cd my-first-project
2. Open VS Code
code .
3. Create a new file
Click "New File" and save it as hello.py.
4. Write some code
print("My development environment is working!")
name = input("What's your name? ")
print(f"Hello, {name}!")
5. Run the code
Open the terminal in VS Code (Terminal > New Terminal) and type:
python hello.py
If you see the message and it asks for your name, congratulations—your development environment is fully set up.
Advanced Setup for Later
Once you are comfortable with the basics, consider these additional tools:
Windows Subsystem for Linux (WSL)
If you are on Windows and want a Linux-like environment, WSL lets you run a full Linux distribution directly inside Windows:
wsl --install
This installs Ubuntu and sets up WSL 2. After a system restart, you will have a Linux terminal inside Windows.
Virtual Environments for Python
Virtual environments keep your project's packages isolated. This prevents conflicts between different projects:
python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate
When you see (.venv) in your terminal, you are inside the virtual environment. Now you can install packages without affecting your system.
Quick Setup Checklist
-
VS Code installed and running
-
Python or Node.js installed and verified
-
Git installed and configured with your name and email
-
SSH key generated and added to GitHub
-
First project created and code ran successfully
Final Thought
Setting up your development environment might feel tedious the first time, but this is something you do once and then use every single day. Do not worry about perfection. Get the basics installed, write your first "Hello, World!" and you are already a developer. The rest you will learn along the way.
Contact Us
Phone: +91 9667708830
Email: info@codingnow.in
Website: https://codingnowai.in/
Address:
2nd Floor, Kapil Vihar (Opp. Metro Pillar No.354)
Pitampura, New Delhi – 110034
Backlink to main website: Explore Python and AI courses at Coding Now – Gurukul of Ai