# Sanity Studio keyboard shortcuts

Sanity Studio includes keyboard shortcuts to help you work more efficiently. These shortcuts provide quick access to common actions like navigation, document editing, and tool-specific features.

- The ⌘ symbol represents the Command key on Mac.
- Ctrl represents the Control key on Mac, Windows, and Linux.

## Global navigation

These shortcuts work throughout Sanity Studio regardless of which tool or document you're working in.

- Open global search: `⌘+K` (Mac) / `Ctrl+K` (Windows/Linux)
- Close search or dialogs (when active): `Escape`
- Confirm input in location and URL fields: `Enter`

## Document actions

Use these shortcuts when working with documents in the Structure tool.

- Delete document: `Ctrl+Option+D` (Mac) / `Ctrl+Alt+D` (Windows/Linux)
- Inspect document: `Ctrl+Option+I` (Mac) / `Ctrl+Alt+I` (Windows/Linux)
- Save document: `⌘+S` (Mac) / `Ctrl+S` (Windows/Linux) *Note: Documents are automatically saved as you edit them. You do not need to save them manually.*

## Portable Text Editor

These shortcuts are available when editing rich text content in Portable Text fields.

### Basic formatting

- Toggle bold: `⌘+B` (Mac) / `Ctrl+B` (Windows/Linux)
- Toggle italic: `⌘+I` (Mac) / `Ctrl+I` (Windows/Linux)
- Toggle underline: `⌘+U` (Mac) / `Ctrl+U` (Windows/Linux)
- Toggle inline code formatting: `⌘+'` (Mac) / `Ctrl+'` (Windows/Linux)
- Toggle fullscreen mode: `⌘+Enter` (Mac) / `Ctrl+Enter` (Windows/Linux)

You can also use a variety of text-based shortcut behaviors. See the [Portable Text Editor configuration](https://www.sanity.io/docs/studio/portable-text-editor-configuration) documentation for more details.

## Vision tool (GROQ Playground)

- Execute GROQ query: `⌘+Enter`:  (Mac) / `Ctrl+Enter` (Windows/Linux)

## Presentation tool (Visual Editing)

- Toggle visual editing overlay: Hold `Option` (Mac) / `Alt` (Windows/Linux)

## Shopify plugin

If you have the [Shopify plugin](https://www.sanity.io/docs/apis-and-sdks/sanity-connect-for-shopify) installed, these additional shortcuts are available.

- Shopify delete action: `Ctrl+Option+D` (Mac) / `Ctrl+Alt+D` (Windows/Linux)
- Shopify link action: `Ctrl+Option+E` (Mac) / `Ctrl+Alt+E` (Windows/Linux)

