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

# Keyboard Shortcuts

> Navigate Kleap faster with keyboard shortcuts

Speed up your workflow with these keyboard shortcuts.

## General

| Action                 | Mac   | Windows/Linux |
| ---------------------- | ----- | ------------- |
| Search/Command palette | `⌘ K` | `Ctrl K`      |
| Settings               | `⌘ ,` | `Ctrl ,`      |
| Help                   | `⌘ ?` | `Ctrl ?`      |

## Chat

| Action              | Mac           | Windows/Linux |
| ------------------- | ------------- | ------------- |
| Focus chat input    | `⌘ L`         | `Ctrl L`      |
| Send message        | `Enter`       | `Enter`       |
| New line in message | `Shift Enter` | `Shift Enter` |
| Stop generation     | `Escape`      | `Escape`      |

## Editor

| Action                 | Mac         | Windows/Linux  |
| ---------------------- | ----------- | -------------- |
| Save file              | `⌘ S`       | `Ctrl S`       |
| Undo                   | `⌘ Z`       | `Ctrl Z`       |
| Redo                   | `⌘ Shift Z` | `Ctrl Shift Z` |
| Find                   | `⌘ F`       | `Ctrl F`       |
| Find and replace       | `⌘ H`       | `Ctrl H`       |
| Go to line             | `⌘ G`       | `Ctrl G`       |
| Toggle comment         | `⌘ /`       | `Ctrl /`       |
| Duplicate line         | `⌘ Shift D` | `Ctrl Shift D` |
| Move line up           | `Option ↑`  | `Alt ↑`        |
| Move line down         | `Option ↓`  | `Alt ↓`        |
| Select word            | `⌘ D`       | `Ctrl D`       |
| Select all occurrences | `⌘ Shift L` | `Ctrl Shift L` |

## File Navigation

| Action         | Mac     | Windows/Linux |
| -------------- | ------- | ------------- |
| Open file      | `⌘ P`   | `Ctrl P`      |
| Close file     | `⌘ W`   | `Ctrl W`      |
| Switch file    | `⌘ Tab` | `Ctrl Tab`    |
| Toggle sidebar | `⌘ B`   | `Ctrl B`      |

## Preview

| Action             | Mac         | Windows/Linux  |
| ------------------ | ----------- | -------------- |
| Refresh preview    | `⌘ R`       | `Ctrl R`       |
| Hard refresh       | `⌘ Shift R` | `Ctrl Shift R` |
| Toggle device mode | `⌘ D`       | `Ctrl D`       |

## Version History

| Action           | Mac         | Windows/Linux  |
| ---------------- | ----------- | -------------- |
| Open history     | `⌘ Shift H` | `Ctrl Shift H` |
| Undo last change | `⌘ Z`       | `Ctrl Z`       |

## Publishing

| Action  | Mac         | Windows/Linux  |
| ------- | ----------- | -------------- |
| Publish | `⌘ Shift P` | `Ctrl Shift P` |

## Selection

| Action     | Mac   | Windows/Linux |
| ---------- | ----- | ------------- |
| Select all | `⌘ A` | `Ctrl A`      |
| Copy       | `⌘ C` | `Ctrl C`      |
| Cut        | `⌘ X` | `Ctrl X`      |
| Paste      | `⌘ V` | `Ctrl V`      |

## Text Editing

| Action              | Mac                | Windows/Linux    |
| ------------------- | ------------------ | ---------------- |
| Delete word         | `Option Backspace` | `Ctrl Backspace` |
| Delete line         | `⌘ Shift K`        | `Ctrl Shift K`   |
| Go to start of line | `⌘ ←`              | `Home`           |
| Go to end of line   | `⌘ →`              | `End`            |
| Go to start of file | `⌘ ↑`              | `Ctrl Home`      |
| Go to end of file   | `⌘ ↓`              | `Ctrl End`       |

## Multi-Cursor

| Action              | Mac            | Windows/Linux |
| ------------------- | -------------- | ------------- |
| Add cursor above    | `⌘ Option ↑`   | `Ctrl Alt ↑`  |
| Add cursor below    | `⌘ Option ↓`   | `Ctrl Alt ↓`  |
| Add cursor at click | `Option Click` | `Alt Click`   |

## Code Folding

| Action     | Mac          | Windows/Linux   |
| ---------- | ------------ | --------------- |
| Fold       | `⌘ Option [` | `Ctrl Shift [`  |
| Unfold     | `⌘ Option ]` | `Ctrl Shift ]`  |
| Fold all   | `⌘ K ⌘ 0`    | `Ctrl K Ctrl 0` |
| Unfold all | `⌘ K ⌘ J`    | `Ctrl K Ctrl J` |

## Tips

<AccordionGroup>
  <Accordion title="Learn gradually">
    Don't try to memorize all shortcuts at once. Pick 2-3 that would help your workflow and focus on those.
  </Accordion>

  <Accordion title="Most useful shortcuts">
    Start with these:

    * `⌘ K` - Command palette
    * `⌘ P` - Open file
    * `⌘ /` - Toggle comment
    * `⌘ D` - Select word/next occurrence
  </Accordion>

  <Accordion title="Preview keyboard">
    When typing in the preview (forms), editor shortcuts are disabled to avoid conflicts.
  </Accordion>
</AccordionGroup>

## Customization

Currently, keyboard shortcuts cannot be customized. We're considering this for a future update.

<Card title="Code Editor" icon="code" href="/features/code-editor">
  Learn more about the editor
</Card>
