# Code, terminal and agents

Open a site’s folder, edit it, read its changes and push them with git, with real shells and your coding agent beside the editor.

## Code

**Code** opens any folder on your computer: a site’s repository, or anything else. Edit its files, read what changed, and stage, commit, pull and push with git, as you would in a terminal. Your push is what deploys the site.

- **⌘P** opens a file by a few letters of its name. `name:line` opens it at a line. Files git ignores are left out.
- **⌘⇧F** searches the whole project, or one folder of it from the folder’s menu.
- **IDE ↗** opens a general-purpose IDE in a window of its own: folders, files, a terminal and your agents.

## The editor understands your code

- **Types and errors**: TypeScript and JavaScript errors show as you type; **Problems** (**⌘⇧M**) lists every one in the project. Hover a name for its type and docs.
- **Find your way**: Go to definition (**F12**), every use (**⇧F12**), rename across files (**F2**), a symbol in the file (**⌘⇧O**), a symbol in the project (**⌘T**), and the file’s outline and breadcrumbs.
- **Fix as you go**: Quick fixes (**⌘.**), organise imports (**⇧⌥O**), format the file (**⇧⌥F**). Completion adds the import line for you. Your project’s own Prettier formats on save, in folders you trust.
- **Your project’s checks**: In a folder you trust, the project’s ESLint problems sit beside TypeScript’s, and Vitest and Jest tests run from the margin, with results in a **Tests** tab.
- **More than code**: `package.json` and `tsconfig` are checked and completed; CSS variables and class names are completed and followed to where they are declared. A Markdown file has a preview (**⇧⌥V**); a `.http` file sends the request under the cursor (**⇧⌥R**).
- **Settings › Editor**: Code size, line height, wrapping, tabs or spaces and indent guides. A project’s `.editorconfig` is followed for the files it names.

## Git where you work

- Marks beside changed lines, with **Revert**, who last changed the line, and a file’s **History**, with every save kept on this Mac.
- In **Changes**: stage one change at a time, put work aside with **Stash**, and settle merge conflicts in the editor with **Keep mine**, **Keep theirs** or **Keep both**.

*Changes: what you edited, ready to commit and push.*

## The terminal

Real shells under your tabs, several at once, with **Problems** and **Output** beside them.

## Agents

Start the coding agent you already use in the folder you are working on, from the app. It works on your files beside you; you read its changes in **Code** and push them with git. To give it your sites, content and deploys too, [connect it over MCP](https://www.stackide.com/docs/agents/mcp).

- Your agents stay under **Sessions** while they run.
- A session running in the background, with no window, is listed under **Running elsewhere** with when it went idle. **End** stops it; its chat stays under **Recent chats** to pick up again.

*Agents: your coding agent, in the folder you are working on.*
