> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kisuke.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Editor

> Edit code files on any device

## Overview

Kisuke includes a code editor with syntax highlighting, file management, and integration with AI chat — available on any device.

## Features

### Syntax Highlighting

Support for 100+ languages including:

* JavaScript / TypeScript
* Python
* Rust
* Go
* Java / Kotlin
* Swift
* C / C++
* HTML / CSS
* SQL
* And many more...

### File Browser

Navigate your project structure:

* **Tree view** - Expandable folder hierarchy
* **Quick open** - Search for files by name
* **Recent files** - Access recently edited files

### Editing

* **Auto-indent** - Smart indentation
* **Bracket matching** - Highlight matching brackets
* **Line numbers** - Easy navigation
* **Find & replace** - Search within files

## Mobile Optimizations

### Touch-Friendly

* Large tap targets
* Drag to select text
* Pinch to zoom

### Keyboard

Kisuke's keyboard includes:

* **Tab key** - For indentation
* **Symbol row** - Quick access to brackets, quotes, etc.
* **Arrow keys** - Precise cursor movement

### Quick Actions

Swipe on the editor toolbar for:

* Undo / Redo
* Comment toggle
* Format code
* AI assist

## Working with Files

### Opening Files

1. Tap **Editor**
2. Browse the file tree or use search
3. Tap a file to open

### Creating Files

1. Long-press a folder
2. Tap **New File** or **New Folder**
3. Enter the name

### Saving

Files auto-save as you type. Manual save:

* Tap the save icon, or
* Use Cmd/Ctrl+S on external keyboard

## AI Integration

### Inline Suggestions

Select code and tap **AI** to:

* Get explanations
* Request improvements
* Generate tests
* Fix errors

### Chat Context

When you open chat from the editor:

* Current file is shared as context
* Selection is included if present
* AI can see your project structure

## Media Files

Kisuke's editor can preview media files directly — no external app needed. Open any supported file from the file browser and it renders inline.

### Images

| Format | Extension       |
| ------ | --------------- |
| PNG    | `.png`          |
| JPEG   | `.jpg`, `.jpeg` |
| GIF    | `.gif`          |
| WebP   | `.webp`         |
| SVG    | `.svg`          |
| ICO    | `.ico`          |

### Video

| Format | Extension |
| ------ | --------- |
| MP4    | `.mp4`    |
| WebM   | `.webm`   |

### Audio

| Format | Extension |
| ------ | --------- |
| MP3    | `.mp3`    |
| WAV    | `.wav`    |

### Documents

| Format | Extension |
| ------ | --------- |
| PDF    | `.pdf`    |

## Editing Remote Files

When connected to a computer via Kisuke Connect:

1. Open a connected Session
2. Browse files on your remote machine
3. Edit directly — changes save to the remote file

<Note>
  Remote editing requires an active connection to the target device.
</Note>

## Tips

### External Keyboard

Connect a Bluetooth keyboard for full desktop-style editing:

* Standard shortcuts work (Cmd+S, Cmd+Z, etc.)
* Full key access
* Faster typing
