United States · Grade 6 to college · Visual Studio Code

VS Code setup for students

Visual Studio Code is free and runs on Windows and Mac, so it is a natural choice when a teacher asks you to code at home. It also confuses beginners, because installing VS Code does not install Python or Java. This guide sets it up the way Microsoft's own documentation describes, on a school-issued laptop or a family computer, then walks through the errors students actually see, with the exact messages from our test machine and the fix for each.

Live teaching since 2020 · 10,000+ students · Python and Java, set up on your own laptop

In short

To set up VS Code for school, install three things: VS Code itself, the language extension (Python, or the Extension Pack for Java), and the language (a Python interpreter, or a Java JDK). Open your project folder with File, Open Folder, pick the interpreter in the Status Bar, and run from the play button. Modern Age Coders teaches Python and Java live to students in the US, in a batch or one to one.

Learn it with a teacher

Three courses that start on your own laptop

Each is taught live on your own computer, so a teacher can help get the editor working early and keep the focus on code.

What to install

Three pieces, not one: why VS Code alone runs nothing

The Python tutorial in the VS Code documentation says it directly: "three separate pieces work together to run Python in VS Code." Java works the same way. When nothing runs in week one, check that all three pieces are there.

What each piece does, from the VS Code Python and Java tutorials (read 17 October 2026)
PieceFor PythonFor Java
The editorVS Code, where you write and organize codeVS Code, the same editor
The extensionThe Python extension; the docs note "The extension doesn't include Python itself."Extension Pack for Java; the tutorial needs Language Support for Java by Red Hat and Debugger for Java
The languageA Python interpreter, installed separatelyA Java Development Kit (JDK); the pack "supports Java version 1.8 or above"
An all-in-one optionNone in the tutorialThe Coding Pack for Java bundles VS Code, a JDK and extensions, but "is only available for Windows and macOS"

Is VS Code free for students?

Yes, and not only for students. The VS Code FAQ says "VS Code is free for private or commercial use." There is no student edition to apply for.

Python and the JDK distributions the Java tutorial lists are also free to download, so a working setup costs nothing.

VS Code is not Visual Studio

Visual Studio is a different, larger Microsoft product. If your teacher said VS Code, you want Visual Studio Code from code.visualstudio.com.

The pair is confused often enough that vs code vs visual studio shows up in search suggestions. For a school Python or Java class, VS Code is the one to install.

Installing

Installing VS Code on a school or family laptop

If your school manages your laptop, you may not have an administrator password. The VS Code docs cover that case, and the Mac and old-Windows cases too.

Installing VS Code, from the VS Code setup documentation (read 17 October 2026)
Your computerWhat the docs sayWatch out for
Windows, no admin passwordThe User setup "does not require administrator permissions" and is "the recommended installation for most people""Updates are disabled when VS Code runs as Administrator from a User setup installation."
Windows, family computer"Setup adds Visual Studio Code to your %PATH% environment variable. Restart your console after installation"Run code . in a folder to open it, after restarting the terminal
Mac"Drag Visual Studio Code.app to the Applications folder."Then open it from Applications by double-clicking the icon, as the docs describe
Mac, to use code in TerminalRun Shell Command: Install 'code' command in PATH from the Command PaletteRestart the terminal afterwards
Mac with Apple siliconThe download page lists Universal, Intel chip and Apple silicon buildsUniversal works on both
Windows 7"VS Code version 1.70.3 is the last available release for Windows 7 users"Old laptops need a newer Windows for current VS Code

If Python will not install without admin

The Python tutorial in the VS Code docs offers a route: "If you don't have admin access, an additional option for installing Python on Windows is to use the Microsoft Store."

If the Store is blocked as well, ask your teacher or the school's tech office rather than looking for a workaround; the device belongs to the district.

Mac students: one Python warning

The VS Code docs say "The system install of Python on macOS is not supported." They recommend Homebrew, with brew install python3 in Terminal.

The python.org installer is the other common choice for students. Either way, use a Python you installed, not the one the Mac shipped with.

Python

Setting up Python in VS Code, and the three errors that follow

Follow the steps in order. Each one matches a step in the VS Code Python tutorial, and each error below appears when one is skipped.

  1. Install Python from python.org (Windows) or Homebrew (Mac).
  2. Check it. In a new terminal, run py -3 --version on Windows or python3 --version on a Mac.
  3. Install the Python extension from the Extensions view in VS Code.
  4. Open a folder, not a file. File, Open Folder. In the docs' words, that folder becomes your "workspace".
  5. Create an environment. Command Palette, Python: Create Environment, choose Venv, then the interpreter you installed.
  6. Select the interpreter. Python: Select Interpreter, or click the Python version in the Status Bar.
  7. Create a .py file, type a line of code and save it.
  8. Run it with the Run Python File play button in the top-right of the editor.
A ten-second check · which Python is VS Code using?python
# check_setup.py  (ours) run with Run Python File
import sys
print(sys.version)       # which Python is running
print(sys.executable)    # where it lives on disk

# In the VS Code terminal on Windows, the docs suggest:
#   py -3 --version
#   py -0      (lists installs; * marks the default)
# Our run of py -0:
#   -V:3.13 *        Python 3.13 (64-bit)

If sys.executable does not point into your project's .venv folder, VS Code is using a different Python from the one your packages went into.

Three Python errors and their fixes, from the VS Code Python tutorial
What you seeWhyFix
"ModuleNotFoundError: No module named 'numpy'"The tutorial says it means "the required package isn't available in your interpreter"In the VS Code terminal for that interpreter, run python -m pip install numpy (Windows) or python3 -m pip install numpy (Mac)
Python installed, but VS Code or the terminal cannot find itA terminal reads system settings only when it startsThe docs say: "close and reopen the terminal (or restart VS Code)"
Packages vanish when you switch projectsEach virtual environment keeps its own packagesPick the right interpreter in the Status Bar; share setups with pip freeze > requirements.txt

Java

Setting up Java in VS Code, and the file-name error every AP student meets

Java in VS Code needs a JDK and the Java extensions. Our AP Computer Science A course is taught in Java, and its students tend to meet the same two compile errors in their first week.

Broken · the class name and file name disagreejava
// Saved as Greeting.java  (broken on purpose, ours)
public class Hello {
    public static void main(String[] args) {
        System.out.println("Hi from VS Code");
    }
}

// Our run, javac 22.0.1:
// Greeting.java:1: error: class Hello is public,
//   should be declared in a file named Hello.java

In Java, a public class must live in a file with exactly the same name, including capital letters. This is a Java rule, not a VS Code one, so it appears in every editor.

Fixed · rename the file to match the classjava
// Saved as Hello.java  (fixed, ours)
public class Hello {
    public static void main(String[] args) {
        System.out.println("Hi from VS Code");
    }
}

// Our run: javac Hello.java, then java Hello
// Hi from VS Code
// Leave out the semicolon and javac 22.0.1 says:
// Hello.java:3: error: ';' expected

Rename the file in the VS Code Explorer, or rename the class; the two must match. Case matters: hello.java is a different name from Hello.java.

Open the folder, or the language server stalls

The Java tutorial warns: "If you open a Java file in VS Code without opening its folder, the Java Language Server might not work properly." Symptoms are red squiggles everywhere, no Run button, or no code completion.

Fix it with File, Open Folder on the folder that holds your .java files. For a school project with a build tool, open the project's top folder.

When Run is missing: lightweight mode

The Java project docs explain that "Lightweight mode doesn't resolve imported dependencies nor build the project", so it cannot run or debug. Click the Java status item in the Status Bar to switch to standard mode.

If things are still strange, the docs suggest the Java: Clean Java Language Server Workspace command, which rebuilds the language server's view of your project.

Sources, read 17 October 2026: Getting Started with Java in VS Code and Managing Java Projects in VS Code; compile errors from our own run of javac 22.0.1 on Windows 11. We are not connected with Microsoft.

When it still fails

Ten checks when VS Code will not run your code

Our checklist for the evening before an assignment is due. Work through it in order and stop at the first check that explains the error.

  1. Is the language installed? VS Code does not include Python or a JDK. Check with a version command in a new terminal.
  2. Is the extension installed and enabled? Search @installed in the Extensions view.
  3. Did you open the folder? File, Open Folder, not a single file from Downloads.
  4. Is the right interpreter selected? Look at the Python version in the Status Bar and click it to change.
  5. Did you restart the terminal? After any install, open a fresh terminal so PATH is read again.
  6. Read the whole error. Copy the last line into your notes before trying anything.
  7. Java: does the file name match the class? Hello.java for public class Hello.
  8. Java: is it lightweight mode? Switch to standard mode from the Status Bar.
  9. Is the code saved? The docs note that Run Python File in Terminal saves the file automatically; with any other run method, save first.
  10. Try a one-line program. If print("hi") runs, the setup works and the problem is in your code.

About the AI features

Current VS Code versions include AI chat features linked to GitHub Copilot. They are optional, and the VS Code FAQ says that if you disable AI functionality or do not sign in, your data is not sent to the Copilot back end.

While students are learning to read errors, we keep AI chat switched off in lessons, so they learn to fix problems themselves. Check your school's rules before turning such tools on for coursework.

What we will and will not do

A teacher can set up VS Code with you on a shared screen, explain each error, and make sure your own laptop works for the rest of the year.

We do not write or finish graded assignments. We teach the concept so you can solve the assignment yourself.

A first term

What a first term looks like when the setup is done right

Our plan for students who are new to a real code editor. The first two classes deal with setup so it never gets in the way again.

A first term in VS Code (our plan, adjusted for each student)
ClassesWhat the student doesWhat it builds
1 to 2Install, open a folder, run a first fileA setup that works every time
3 to 4Variables, input and outputReading the terminal, saving often
5 to 6Decisions and loopsUsing the debugger and breakpoints
7 to 8Functions or methodsSplitting code across files
9 to 10A project with a package or classEnvironments, imports, file names
11 to 12Version control with GitCommitting work from inside VS Code

Middle school

In our classes, students in Grades 6 to 8 start with Python, where one file and one play button go a long way.

High school

Students heading for AP Computer Science A add Java in the second term with us, in the same editor.

College

We have college students set up one environment per course from day one, which saves a lot of grief at midterms.

For the AP course itself, see AP Computer Science A online classes; for Java outside the AP track, Java classes for teens; and for choosing an editor at all, our post on Java IDEs for beginners.

Where a student is

Four stages of working in a real editor

From fighting the setup to forgetting it is there.

Stages with VS Code (ours)
StageWhat it looks like
1. InstallerVS Code is installed, but nothing runs yet
2. RunnerRuns single files with the play button
3. OrganizerWorks in folders, environments and projects
4. DebuggerUses breakpoints and reads errors before searching

For parents

If your child is stuck at stage 1, it is almost never their fault: one of the three pieces is missing. Once all three pieces are in place, the setup keeps working.

On a school-managed laptop, some installs are blocked on purpose. Check with the school before working around anything.

For students

Always open the folder. Half of all VS Code mysteries disappear with that one habit.

Look at the Status Bar. It tells you which Python or which Java mode you are in.

The catalogue

Nine courses taught in a real editor

All live online with a regular teacher, in a batch or one to one.

I

Teens

Ages 13 to 18

VSC / TEN / 03

JavaScript for teens

Websites built in the editor.

Open the syllabus
II

Exams and tools

High school

VSC / EXM / 02

Git and GitHub for teens

Commit and push from VS Code.

Open the syllabus
III

College and adults

Ages 18 and up

VSC / PRO / 03

Git and GitHub for college

Collaboration on real repos.

Open the syllabus

How lessons run

Live lessons on your own laptop

Weekdays or weekends, flexible: choose your batch, or for a very personalised plan choose 1-on-1 at your convenience, weekend mornings or weekdays.

Weekdays

After-school batches in US time zones.

Weekends

Good for a full setup session.

1-on-1

When an assignment is due soon.

One teacher

The same person all term.

Your machine

We fix the setup you will use.

Screen sharing

Errors read together, live.

You do the work

Graded work stays your own.

Anywhere in the US

Online, from home.

Batch or solo

Fifteen to twenty, or one student.

Student work

Projects our students built in their own editors

Apps and programs from students who once could not get the play button to work. More on the student labs page.

NutriLife AI nutrition coach project screenshot

AI and ML

NutriLife

An AI nutrition coach that reads what you eat and works you toward a target.

by Bhavya · Open it

Misti AI chatbot for maths and coding screenshot

AI and ML

Misti

A chatbot that answers mathematics and programming questions, built and deployed by a student.

by Harshit · Open it

GuardianX AI internet safety assistant screenshot

AI and ML

GuardianX

An assistant that helps a young person recognise unsafe situations online.

by Vivaan · Open it

SkyCast weather forecast application screenshot

Web app

SkyCast

A weather forecasting site with live conditions for any location.

by Krish

Fees

Fees

VS Code, Python and a JDK are all free. Our fee is for the teaching, charged per month in US dollars, with no semester-long agreement and no charge after you decide to stop.

Free first class

USD 0

no card required

  • A free first lesson
  • We can start with your setup
  • No card details
Book it

Group batch

USD 100

a month, billed in US dollars

  • Fifteen to twenty students
  • A regular teacher
  • Your choice of batch
  • Month by month
Start here

One to one

USD 150

a month, billed in US dollars

  • Private lessons
  • Booked at your convenience
  • Your own course and laptop
Enquire

What families say

Rated 4.9 across 547 Google reviews

Word-for-word Google reviews from parents.

★★★★★

"The one step solution for my son. Modern Age Coders make learning coding so simple that kids love it. The teachers explain complex concepts clearly with practical exercises and interactive content."

Ria Mukherjee

Parent

★★★★★

"Modern Age Coders has been a game-changer for me. I struggled to grasp IT concepts and coding before joining, but their classes transformed everything. I can now confidently write complex programs with ease."

Samriddha Mondal

Student

★★★★★

"One of the most wonderful education centres out there. Education is not limited to school syllabus but focuses on skill development."

Vansh Agarwal

Student

★★★★★

"My child Dhairya is really enjoying the Modern Age Coders classes. This is his first online class and he eagerly looks forward to it. I can already see his improvement, and the teachers are very cooperative."

Sonam Oswal

Parent of Dhairya

★★★★★

"Modern Age Coders have wonderful teachers who teach in a clear, easy and practical way. The teacher boosts students' confidence and inspires them to learn without hesitation."

Sonu Goyal

Parent

★★★★★

"I highly recommend this computer coding class! The teachers are incredibly knowledgeable and passionate about coding."

Ritu Kedia

Parent

Questions students ask

VS Code setup: common questions

Is VS Code free for students?

Yes. The VS Code FAQ says VS Code is free for private or commercial use, so there is no student version to apply for. Python and the free JDK builds the Java tutorial lists cost nothing either.

Why is VS Code not working with Python?

Usually one of three pieces is missing: VS Code, the Python extension, or Python itself. The extension does not include Python. Install Python, restart the terminal, then choose the interpreter with Python: Select Interpreter.

How do I select the Python interpreter in VS Code?

Click the Python version shown in the Status Bar, or open the Command Palette and run Python: Select Interpreter, then choose your project environment or the Python you installed.

Why does VS Code say No module named numpy?

The package is not installed in the interpreter VS Code is using. In the VS Code terminal for that interpreter, run python -m pip install numpy on Windows or python3 -m pip install numpy on a Mac.

How do I set up Java in VS Code?

Install a JDK and the Extension Pack for Java, or on Windows and macOS use the Coding Pack for Java, which bundles both with VS Code. Then open the folder that holds your .java files.

Why does Java say class is public, should be declared in a file named?

A public class must be in a file with exactly the same name. Our run of public class Hello in Greeting.java failed for that reason. Rename the file to Hello.java, matching capital letters.

Can I install VS Code on a school laptop without admin rights?

The VS Code docs say the Windows User setup does not require administrator permissions. Your school may still block installs, so check with your teacher or school tech office first.

Will you do my coding assignment?

No. We help you set up your tools and teach the ideas so you can finish your own assignment. We never complete graded work.

What times are classes for US students?

Weekdays or weekends, flexible. Choose your batch, or for a very personalised plan choose 1-on-1 at your convenience, weekend mornings or weekdays.

How much do Python or Java classes cost?

The first lesson is free. After that you pay monthly for live lessons, and the fees section on this page shows the amount in US dollars.

Elsewhere on this site

Related pages

More for US students using real code editors.

Coding classes in the USA

The full list of our pages for the US.

AP CSA online classes

Java for the AP course.

Java classes for teens

Java beyond the AP track.

Java IDEs for beginners

Comparing editors before you install.

Git vs GitHub

The next tool after the editor.

Python for 15 year olds

A high school starting point.

GitHub Classroom help for students

GitHub Classroom retired on August 28, 2026: what students need to know.

Google Colab help for students

Google Colab not working? Runtimes, files, Drive and limits, explained.

Jupyter Notebook errors for students

Jupyter Notebook errors students hit, what they mean, and how to fix them.

Start here

Book a free first lesson

Tell us which class needs VS Code and what error you see. The first lesson can be spent getting your laptop working.

To see the method first, read about our live lessons, or look through every course and its syllabus.

WhatsApp us · +91 91233 66161 · connect@modernagecoders.com

Classes run online with teachers in India, so students join from any state without traveling. Message us on WhatsApp for the fastest reply.

The first lesson is free and asks for no card.

Want a class sooner? Book a priority demo

A priority demo is a full class of about 45 to 60 minutes. After the class the mentor sends a written skill report and a personal learning roadmap on WhatsApp. If you enrol, the demo fee is adjusted against your first month's fee. Share your demo Order ID with us on WhatsApp and we take it off.

Book a priority demo

Keep exploring Modern Age Coders

Related courses and guides

Learn more

Free resources

From the blog

Start here

Free classPriority demoCall us