Getting Started
20 minutes
linux
macos
windows

What is an IDE?

Learn what an IDE is, compare VS Code and Cursor, and install one on your computer.

What you'll accomplish

Have VS Code or Cursor installed and understand how to use it for editing code.

Prerequisites

  • Completed previous Getting Started lessons
  • A computer (Windows, Mac, or Linux)

What is an IDE?

An IDE (Integrated Development Environment) is an application for writing code. Think of it as Microsoft Word, but for programmers.

Imagine a carpenter's workshop. They could just have a hammer, but a real workshop has:

  • A workbench (the main editing area)
  • Organized tool drawers (file browser)
  • Lighting (syntax highlighting - colors that make code easier to read)
  • Power tools (extensions and automations)
  • Blueprints on the wall (documentation and help)

An IDE gives you all these tools in one place, designed specifically for building software.

Why Not Just Use Notepad?

You can write code in any text editor, even Notepad. But an IDE makes you much more productive:

Plain Text EditorIDE
All text looks the sameDifferent parts of code have different colors
You have to remember everythingAutocomplete suggests what you're typing
Errors? Find them yourselfHighlights problems before you run the code
Navigate manuallyJump to any file, function, or variable instantly
External tools separateTerminal, debugger, Git all built-in

Syntax highlighting colors different parts of code to make it easier to read.

For example, in this code:

javascript
function sayHello(name) {
  return "Hello, " + name;
}

An IDE might show:

  • function in blue (it's a keyword)
  • sayHello in yellow (it's a function name)
  • "Hello, " in green (it's text/string)
  • name in white (it's a variable)

This helps you spot mistakes - if a string isn't green, you probably forgot a quote mark.

VS Code vs Cursor: Which One?

For AI-assisted coding, there are two excellent choices. Both are free.

VS Code (Visual Studio Code)

What it is: Microsoft's free code editor. The most popular IDE in the world.

Best for:

  • General development
  • Massive ecosystem of extensions
  • Using multiple AI tools (GitHub Copilot, Continue, etc.)
  • Maximum flexibility and customization

Website: code.visualstudio.com

Cursor

What it is: A fork of VS Code with AI features built-in.

Best for:

  • AI-first development
  • Built-in chat with your codebase
  • Seamless AI code generation
  • People who want AI integration without setup

Website: cursor.com

Note

Our recommendation: If you're focused on AI-assisted coding, try Cursor first - the AI integration is smoother. You can always switch to VS Code later (they're nearly identical otherwise).

Comparison Table

FeatureVS CodeCursor
PriceFreeFree (Pro: $20/month)
Based onOriginalFork of VS Code
AI ChatVia extensionsBuilt-in
ExtensionsAll VS Code extensionsAll VS Code extensions
Learning curveLowLow
UpdatesFrequentFrequent
CompanyMicrosoftAnysphere

Yes! VS Code and Cursor can coexist on the same computer. They even share settings if you want.

Many developers use:

  • Cursor for AI-heavy work (new features, exploration)
  • VS Code for detailed editing and debugging

Installing Your IDE

Essential First Steps

After installing, do these basic configurations:

1. Choose a Theme

The default theme is fine, but many people prefer a darker theme:

  1. Press Ctrl + K, then Ctrl + T (Mac: Cmd + K, Cmd + T)
  2. Browse themes and pick one you like
  3. Popular choices: "One Dark Pro", "Dracula", "GitHub Dark"

2. Increase Font Size (Optional)

If text is too small:

  1. Press Ctrl + + to zoom in (Mac: Cmd + +)
  2. Or: File → Preferences → Settings → search "font size"

3. Install Recommended Extensions

Extensions add extra functionality. Start with these essentials:

ExtensionWhat it does
PrettierAutomatically formats your code to look consistent
ESLintHighlights JavaScript errors and problems
GitLensEnhanced Git features (who changed what, when)

To install extensions:

  1. Click the Extensions icon in the sidebar (or Ctrl/Cmd + Shift + X)
  2. Search for the extension name
  3. Click "Install"

Extensions are like apps for your IDE. They add features the IDE doesn't have by default.

Think of it like a smartphone:

  • Your phone comes with basic apps
  • You install more apps from the App Store for extra functionality

VS Code/Cursor work the same way - they come with basic features, and you install extensions for extras.

Key Features to Know

The Command Palette

The most important shortcut: Ctrl + Shift + P (Mac: Cmd + Shift + P)

This opens the Command Palette - a search bar for any action in the IDE.

Don't know how to do something? Open the Command Palette and search for it.

The File Explorer

The sidebar on the left shows your files and folders. Click to open them.

  • Right-click for options (new file, rename, delete)
  • Drag files to move them
  • Ctrl/Cmd + P to search for any file by name

The Integrated Terminal

You don't need a separate terminal window. The IDE has one built-in:

  • Ctrl + ` (backtick) to toggle the terminal
  • Or: View → Terminal

This terminal works exactly like the one you learned about earlier.

Multiple Files (Tabs)

Click files to open them in tabs. Work on multiple files at once.

  • Ctrl/Cmd + W to close current tab
  • Ctrl/Cmd + Tab to switch between tabs
  • Split the editor to see files side-by-side

Quick Reference

ActionWindows/LinuxMac
Command PaletteCtrl + Shift + PCmd + Shift + P
Quick Open (find file)Ctrl + PCmd + P
Toggle TerminalCtrl + `Cmd + `
SaveCtrl + SCmd + S
FindCtrl + FCmd + F
Find in all filesCtrl + Shift + FCmd + Shift + F
Toggle SidebarCtrl + BCmd + B
Close tabCtrl + WCmd + W

Common Issues

Frequently Asked Questions

You need to add it to your PATH:

  1. Open VS Code/Cursor
  2. Press Ctrl/Cmd + Shift + P
  3. Type "shell command"
  4. Select "Install 'code'/'cursor' command in PATH"
  5. Open a NEW terminal window

By default, you must press Ctrl/Cmd + S to save.

To enable auto-save:

  1. File → Preferences → Settings
  2. Search "auto save"
  3. Set "Files: Auto Save" to "afterDelay"
  • Quick zoom: Ctrl/Cmd + + or Ctrl/Cmd + -
  • Reset: Ctrl/Cmd + 0
  • Permanent: Settings → search "font size"

That's because Cursor is built on top of VS Code! They share 95% of the same code. The main difference is Cursor's built-in AI features.

If you know how to use one, you can use the other.

You can, but it's not necessary. Pick one to start with. You can easily switch later - your skills transfer directly.

Verify Your Understanding

You've completed this lesson if you can:

0/5

Next: Learn how to install Claude Code, the AI coding assistant that runs in your terminal.