Skip to Content
Day 1: SetupClaude Basics

Claude Basics

Learn how to program with AI using Claude Code.


What is Claude Code?

Claude Code is a VS Code extension that lets you program while chatting with Claude (AI).

Two Interfaces

Claude Code can be used in two ways:

InterfaceDescriptionFeatures
Chat UI (VS Code extension)Chat in VS Code sidebarBeginner-friendly, intuitive
TerminalCommand line interactionFor advanced users, faster

This workshop primarily uses the Chat UI.

VS Code UI

  • Center Claude icon: Opens the terminal
  • Bottom-right icon: Opens the Claude Code chat UI

How to launch in Terminal (for reference):

claude

Type claude in Terminal to start Claude Code.

Note: Slash commands like /compact and /clear are only available in Terminal. In the Chat UI, use the ”+” button to start a new chat.


What you do

  • Tell Claude what you want to build in natural language
  • Review what’s been created
  • Request modifications or additions

What Claude does

  • Write code
  • Create and edit files
  • Fix errors
  • Explain things you don’t understand

Basic Flow

1. Open Claude Code

  1. Open a project folder in VS Code
  2. Click the Claude icon in the left sidebar
  3. The chat panel appears

2. Tell Claude What You Want to Build

Type in the chat field and press Enter:

Create a program that displays today's date

3. Claude Works

Claude writes code and creates files. You can see what it’s doing on screen.

4. Review and Request Changes if Needed

Also display the time Change the format to YYYY-MM-DD

Approval (Permission) Decisions

When Claude creates/edits files or runs commands, it asks for your permission.

Operations Requiring Permission

  • Creating/editing files
  • Running commands (like executing programs)
  • Deleting files

Decision Points

DisplayDecision
File name/content to create looks reasonableAllow
Command to run is understandableAllow
Not sureDeny first and ask questions

When in Doubt

What does this command do?

Just ask before deciding. Even if you make a mistake, you can fix it later.

Bulk Approval Options

If approving the same type of operation repeatedly gets tedious, options like “Allow for this session” let you auto-approve during the session.


Usage Limits

Claude Code has usage limits. When you hit the limit, it becomes temporarily unavailable.

Types of Limits

LimitDescriptionReset
5-hour sessionUsage from when you startResets after 5 hours
Weekly QuotaWeekly usage limit7-day rolling window

When Approaching Limits

  • A warning appears on screen
  • When the limit is reached, you need to wait until the specified reset time (displayed as “Resets today at ○○”)
  • Switching to Max Plan: Contact a mentor (company will cover the cost)

Tips to Save Usage

  • Don’t continue unnecessarily long conversations
  • Start new topics with a new chat (”+” button)
  • Try small iterations rather than aiming for perfection at once

When Conversations Get Long

As conversations with Claude get longer, it may slow down or forget earlier content. This is separate from the Quota (usage limit) issue.

How to Handle

In Chat UI (VS Code):

  • Click the ”+” button to start a new chat

In Terminal:

  • Use the /compact command to compress conversation history

When to Start a New Chat

  • When conversations get long
  • When you feel “Did it forget what I said earlier?”
  • When starting new work

Tips for Effective Prompting

Good Examples

"Create a tool that reads a CSV file and calculates total sales" "Create a webpage that shows a message when a button is clicked" "Fix this error" "Explain what this code does"

Better Examples (Be Specific)

"Create a Python script that reads a CSV file (column 1 is date, column 2 is product name, column 3 is amount) and calculates the total of the amounts"
"Create a webpage with an input field and button. When clicked, it displays 'Hello, [name]!' using HTML and JavaScript."

Key Points

  1. Clearly state what you want to build
  2. Be specific about input/output
  3. Mention technology preferences if you have them (Python, JavaScript, etc.)

If you’re not sure, just describe it roughly. Claude will ask clarifying questions.


Useful Features

@Mention to Reference Files

When asking about a specific file, use @ to specify it.

@index.html look at this and change the button color to blue
@data.csv analyze this and tell me the sales trends

How to use:

  1. Type @ in the chat field
  2. File name suggestions appear
  3. Select and continue your message

Claude reads the file contents and responds appropriately.


Show Images

You can show screenshots or design images to Claude.

How to use:

  • Drag and drop images into the chat field
  • Or paste (Cmd + V)

Use cases:

[Paste screenshot] Explain what this error screen means
[Paste design image] Create an HTML layout like this screen
[Paste hand-drawn sketch] Implement this UI

Select Code and Ask Questions

You can select code in VS Code and ask Claude directly about it.

How to use:

  1. Select code in the VS Code editor (drag)
  2. Right-click → “Claude: Add to Chat”
  3. Selected code is added to chat
  4. Enter your question

Use cases:

[Add selected code] Explain what this part does
[Add selected code] There seems to be a bug here. Check it

Understanding the Entire Project

When starting work on a new project, it’s effective to let Claude understand the big picture first.

Explain this project's structure
Tell me the tech stack used in this project
List the main files and their roles

Claude reads the folder structure and files to understand the project.


Tips for Effective Progress

Start Small, Add Gradually

Don’t try to build something perfect at once. Start with the minimum.

Good approach:

1. First create a page that just displays "Hello World" 2. Then add an input form 3. Then make it display a greeting when the button is clicked 4. Then improve the design

Approach to avoid:

Create a page with an input form and button, that displays a greeting when clicked, with nice design, validation, error handling, and responsive design...

Telling Claude everything at once makes it more likely to get confused.


Reset When Things Aren’t Working

When conversations get long or Claude seems confused, starting over is effective.

Signs you need to reset:

  • Same error can’t be fixed despite multiple attempts
  • It forgot what you said earlier
  • Suggestions keep getting more complex

How to reset:

  1. Click the ”+” button to start a new chat (in Terminal: /clear)
  2. Simply explain what you want to do again
  3. Restart from minimum functionality

It might seem like a detour, but it’s often faster in the end.


Common Operations

Start a New Chat

Click the ”+” button at the top of the chat panel. Use this when starting a new topic.

Undo Last Change

When you want to revert Claude’s changes:

Undo the last change

Or use the “Undo” button next to Claude’s response.

Terminal Commands (Reference)

When using Claude Code in Terminal, these slash commands are available:

CommandDescription
/clearClear the chat
/compactCompress context (when conversations get long)
/helpShow command list

Note: These commands are not available in the Chat UI.


Advanced Claude Techniques

Once you’re comfortable with basics, try advanced features like CLAUDE.md, MCP servers, and sub-agents. See Advanced Claude Techniques for details.


When You’re Stuck

When You Get an Error

Show the error message directly to Claude:

I got this error. Fix it

Claude reads the error message, explains the cause, and fixes it.

When You Don’t Know What to Ask

I want to do X, how should I do it? What is X? What should I do next in this project?

Don’t hesitate to ask. Claude is good at explanations.

When You Don’t Understand Claude’s Suggestion

Explain in more detail Explain for a beginner Why do it that way?

Practice: First Steps

Once environment setup is done, try the following.

Exercise 1: Simple Calculation

Open the my-first-app folder in VS Code and in the Claude panel:

Create a Python program that calculates the sum of 1 to 100, and run it

→ Claude creates and runs the file. Allow when asked for permission.

Exercise 2: File Operations

Create a file called fruits.txt and write apple, banana, orange on separate lines

Then:

Create a program that reads fruits.txt and displays everything in uppercase

Exercise 3: Web Page

Create a simple self-introduction page in HTML. Display name and hobbies

Then:

Open the HTML file I created in the browser

Next Steps

Once you’re comfortable with basic operations, try the Meeting Summary Tool Tutorial.

You’ll build a tool you can actually use at work, together with Claude.

Last updated on