Prerequisites
- Cline installed in your editor — Install guide
- An AI model connected — Authorization guide
Step 1: Open a project folder
Cline needs an open workspace folder to create and edit files. Open an empty folder so Cline has a clean place to build.- VS Code / Cursor / Windsurf
- JetBrains
- Go to File → Open Folder in the menu bar.
- Create a new folder on your computer (for example,
todo-appon your Desktop). - Select that folder and click Open.
Step 2: Open the Cline panel
- VS Code / Cursor / Windsurf
- JetBrains
Click the Cline icon in the Activity Bar (the vertical strip of icons on the left). A panel opens showing the Cline chat interface.
- A text input box at the bottom where you type messages
- A chat area above where Cline’s responses appear
- A Plan/Act toggle at the bottom of the panel
- A settings gear icon in the top-right corner
Step 3: Start with Plan mode
Before Cline writes any code, use Plan mode to review the approach. In Plan mode, Cline analyzes your request and describes what it intends to build — no files are created or modified.- Look at the Plan/Act toggle at the bottom of the Cline panel. Click it to switch to Plan if it is not already selected.
- Click the text input box and type the following:
- Press Enter to send the message.
Step 4: Approve file changes
Once in Act mode, Cline proposes actual file changes. Before creating or editing any file, Cline shows you exactly what it wants to do and waits for your approval. Here is what you will see in the chat:- Cline proposes a file. A section appears in the chat showing the file path (for example,
index.html) and the code Cline wants to write. New lines are highlighted in green. - Approve or Reject buttons appear below the proposal.
- Approve — Cline writes the file to your project folder.
- Reject — Cline stops and waits for different instructions.
- Click Approve to let Cline create
index.html.
index.html appears in your editor’s file explorer.
Every file creation, file edit, and terminal command requires your explicit approval. You are always in control of what changes in your project. Once you are comfortable with Cline, you can enable auto-approve to skip confirmations for specific action types.
Step 5: Approve terminal commands
For some tasks, Cline may ask to run a terminal command — for example, to open the file in a browser, install a dependency, or start a dev server. When Cline proposes a command, you will see:- The exact command Cline wants to run (for example,
open index.html) - Approve and Reject buttons
Step 6: View your todo app
After Cline createsindex.html, open it in a browser to see the result.
- macOS
- Windows
- Linux
Open a terminal in your editor (Or right-click
Ctrl+` or Terminal → New Terminal) and run:index.html in the file explorer and select Reveal in Finder, then double-click the file.Step 7: Iterate with follow-up messages
Cline remembers your entire conversation. You can ask for changes and Cline will modify the existing code rather than starting over. In the same Cline chat, type a follow-up request. Here are some examples to try: Add persistence:- Read your current
index.htmlto understand the existing code. - Propose specific changes shown as a diff — green for added lines, red for removed lines.
- Wait for your approval before modifying the file.
Step 8: Undo mistakes with checkpoints
Cline automatically saves a checkpoint after each change it makes. If something breaks or you do not like a change, you can restore a previous state. To find checkpoints: Scroll through the conversation in the Cline panel. Next to each step where Cline made a change, you will see two buttons:- Compare — shows a before/after diff of exactly what changed at that step
- Restore — rolls back your project to the state at that step
| Option | What it does | When to use it |
|---|---|---|
| Restore Task and Workspace | Resets files and conversation history to that point | Start over completely from a prior step |
| Restore Task Only | Keeps current files but reverts conversation context | Rarely needed |
| Restore Workspace Only | Resets files but keeps full conversation history | Try a different approach while keeping the chat |
Checkpoints are separate from Git. Restoring a checkpoint does not affect your commits, branches, or any version control history.
What you learned
You just completed the core Cline workflow:Plan before coding
Use Plan mode to review Cline’s approach before any files are created or modified.
Approve file changes
Every file creation and edit requires your explicit approval. You see the diff before anything is written.
Approve terminal commands
Cline shows you each command it wants to run. Nothing executes without your permission.
Iterate in the same chat
Follow-up messages build on the existing code. Cline modifies rather than rewrites.
Restore with checkpoints
Roll back to any prior state if a change breaks something or goes in the wrong direction.
Context with @ mentions
Use
@file, @folder, and @url in your messages to give Cline direct access to specific content.Next steps
Plan and Act
Learn when to use Plan mode vs Act mode and how to switch between them mid-task.
Working with files
Use
@ mentions to reference files, folders, and URLs directly in your prompts.Auto-approve
Configure which actions Cline can take without asking for approval each time.
Cline rules
Set persistent instructions that shape how Cline behaves across all tasks in your project.
Need help? Join the Cline Discord community or type
/reportbug in the Cline chat to report an issue.