Tips & Tricks
Keyboard shortcuts
Every keyboard shortcut in the Lyna editor and how to change them, for the canvas, panels, chat, editing, layers, frames, the Site map, Annotate, Agent Review, the developer tools and the code editor.
Press Shift + / (the ? key) in the editor to see every shortcut with its keys, grouped by where it applies, with a search field. You can give any shortcut your own keys in Settings > Account > Keyboard shortcuts.
Change a shortcut
Open Keyboard shortcuts
Open Settings > Account > Keyboard shortcuts, or choose Change shortcuts at the top of the shortcuts list (
Shift + /). Type in Search actions... to find an action by its name, or by its keys, such as⌘ KorCtrl K.Press the new keys
Click the keys of an action. The box says Press keys: press the new combination, such as
Ctrl + Alt + Y. It is saved at once and works right away.Esccancels, andDeleteremoves the shortcut.Answer a conflict
When the keys already run another action in the same place, the row says which one. Replace takes the keys from that action, and Cancel keeps everything as it was.
Reset or remove
The reset button next to a changed shortcut gives it its default keys back, and the remove button leaves the action with no shortcut. Restore defaults puts every shortcut back, and the message that follows offers Undo.
The same keys can run different actions in places that never meet: Cmd + D duplicates on the canvas, and finds the next match when you edit a change. The code editor's shortcuts are also in the Code panel's settings, under Keyboard Shortcuts: a change in one place shows in the other.
General
| Action | Shortcut |
|---|---|
| Command Palette | Cmd + K |
| Run a Command (the palette, with commands only) | Cmd + Shift + P |
| Quick Open (a file by its name) | Cmd + P |
| Show Shortcuts | Shift + / |
| Open Settings | Cmd + , |
| Open Subscription | Cmd + B |
| Save | Cmd + S |
| Reload the Preview | Cmd + R |
| Undo | Cmd + Z |
| Redo | Cmd + Shift + Z, or Ctrl + Y on Windows and Linux |
| Close a Dialog or Menu (fixed) | Esc |
Navigation
| Action | Shortcut |
|---|---|
| Design | Cmd + 1 |
| Code | C, or Cmd + 2 |
| Preview | P, or Cmd + 3 |
| Toggle Roadmap | Cmd + Shift + D |
| Toggle Site map | Cmd + Shift + M |
| Source Control | Cmd + Shift + H |
| Toggle Left Panel | Cmd + / |
| Toggle Right Panel | Cmd + \ |
| Chat Fullscreen | Cmd + Shift + \ |
| Toggle Terminal | Cmd + J |
| Toggle DevTools | Cmd + Shift + I |
| Focus Mode | Cmd + Shift + . |
| Chat in a window (and back, from that window) | Cmd + Alt + Shift + C |
| Developer tools in a window | Cmd + Alt + Shift + D |
| Terminal in a window | Cmd + Alt + Shift + T |
| Code in a window | Cmd + Alt + Shift + E |
Canvas
| Action | Shortcut |
|---|---|
| Select | V |
| Pan | H |
| Hold to Pan (fixed) | Hold Space |
| Move Axes (the arrows move the selected element on its axes) | W |
| Annotate (turns Annotate on or off) | M |
| Insert Text | T |
| Hold to Measure (distances to the hovered element, fixed) | Hold Alt |
| Cycle Layers Under the Pointer (fixed) | Alt + click |
| Escape (fixed) | Esc |
| Zoom In or Zoom Out | Cmd + = or Cmd + - |
| Zoom Fit | Cmd + 0 |
| Zoom to Selection | Shift + 2 |
| Next Section or Previous Section of the board | N or Shift + N |
| Wireframe View | Shift + W |
| Pixel Grid | Shift + P |
| Rulers | Shift + R |
| Show Guides | Cmd + ; |
| Lock Guides | Cmd + Alt + ; |
| Layout Grid | Shift + G |
Selection
| Action | Shortcut |
|---|---|
| Edit Text or Select Children (on the selected element) | Enter |
| Select Parent | Shift + Enter |
| Select Next Layer or Select Previous Layer | Tab or Shift + Tab |
| Select Matching Layers | Cmd + Alt + A |
| Lock or Unlock | Cmd + Alt + L |
| Show or Hide | Cmd + Alt + Shift + H |
| Create Component | Cmd + Alt + K |
Edit
| Action | Shortcut |
|---|---|
| Copy | Cmd + C |
| Cut | Cmd + X |
| Paste | Cmd + V |
| Duplicate | Cmd + D |
| Copy Style | Cmd + Alt + C |
| Paste Style | Cmd + Alt + V |
| Paste to Replace | Cmd + Shift + R |
| Delete | Delete or Backspace |
| Wrap (in a new container) | Cmd + G |
| Unwrap | Cmd + Shift + G |
| Add Layout | Shift + A |
Arrange
The arrows move a freely placed element by 1 px, or 10 px with Shift. An element in a row or a column moves one place before or after its neighbor instead.
| Action | Shortcut |
|---|---|
| Nudge by 1 px, or move before or after a neighbor | ←, →, ↑, ↓ |
| Nudge by 10 px, or move before or after a neighbor | Shift + an arrow |
| Bring to Front | Cmd + Alt + ] |
| Bring Forward | Cmd + ] |
| Send Backward | Cmd + [ |
| Send to Back | Cmd + Alt + [ |
| Flip Horizontal | Shift + H |
| Flip Vertical | Shift + V |
| Align Left, Align Horizontal Centers, Align Right | Alt + A, Alt + H, Alt + D |
| Align Top, Align Vertical Centers, Align Bottom | Alt + W, Alt + V, Alt + S |
| Distribute Horizontally or Distribute Vertically | Alt + Shift + H or Alt + Shift + V |
| Tidy Up | Cmd + Alt + T |
Frames and cards
The first four change the size of the selected frame. The last three work on a selected design system card.
| Action | Shortcut |
|---|---|
| Resize Frame to Desktop | Cmd + Shift + 1 |
| Resize Frame to Laptop | Cmd + Shift + 2 |
| Resize Frame to Tablet | Cmd + Shift + 3 |
| Resize Frame to Phone | Cmd + Shift + 4 |
| Focus the Card | F |
| Edit the Card | E |
| Card Details | I |
Site map
These work while the Site map has focus, not while you type in a field.
| Action | Shortcut |
|---|---|
| Fit the map | F |
| Arrange the map (the pages laid out again, in the order of their links) | Shift + L |
Chat
| Action | Shortcut |
|---|---|
| New AI Chat | Cmd + L |
| Add to AI chat (the current selection) | Cmd + Shift + L |
| Open Chat Mode Menu (Build, Plan or Ask, also from the message box) | Cmd + . |
| Send the Message (fixed) | Enter |
| New Line (fixed) | Shift + Enter |
| Send Now (while Lyna AI works or waits for your answer, from the message box with a message typed: only that message goes now, and your queued messages keep their order) | Cmd + Enter |
Annotate
These work while Annotate is on. See Annotate.
| Action | Shortcut |
|---|---|
| Turn Annotate on or off | M |
| Move to the parent or the child element | ↑ or ↓ |
| Add an element to the note, or take it out | Shift + click |
| Add the element to the chat | Alt + click |
| Post the note | Enter |
| New line in the note | Shift + Enter |
| Send the note to Lyna AI | Cmd + Enter |
| Move the note to the chat | Cmd + L |
| Close the note, then Annotate | Esc |
Agent Review
These work on the changes page after a review. See Agent Review.
| Action | Shortcut |
|---|---|
| Next issue | F7 |
| Previous issue | Shift + F7 |
| Back to the toolbar or the list from an issue | Esc |
Developer tools
These work in the bottom panel: the tabs of the developer tools, the terminal and the output.
| Action | Shortcut |
|---|---|
| Find in panel (the open tab's search or filter, the terminal's find bar, the output's filter, a deployment's logs) | Cmd + F |
| Next problem or Previous problem (Security and Doctor) | F2 or Shift + F2 |
| Fix the selected problem (Security) | Cmd + Enter |
| Show problems, Show dependencies, Show the checklist (Security) | 1, 2, 3 |
Code editor
These work while the code editor of the Code panel has focus, except the first two, which work while the Code panel shows. On macOS, Option is the Alt key, and some actions have a second key that works there.
| Action | Shortcut |
|---|---|
| Search in files (Search opens, the cursor in its field) | Cmd + Shift + F |
| Code panel full screen | Ctrl + Cmd + F on macOS, Ctrl + Windows + F on Windows and Linux |
| Find | Cmd + F |
| Find and Replace | Cmd + Alt + F |
| Go to Symbol in Editor | Cmd + Shift + O |
| Go to Definition | F12, on macOS also Ctrl + Shift + G |
| Go to Type Definition | Ctrl + Shift + Y |
| Go to Implementations | Cmd + F12, on macOS also Ctrl + Shift + I |
| Find All References | Shift + F12, on macOS also Ctrl + Shift + U |
| Peek Definition | Alt + F12, on macOS also Ctrl + Shift + J |
| Peek Implementations | Cmd + Shift + F12, on macOS also Ctrl + Shift + X |
| Rename Symbol | F2, on macOS also Ctrl + Shift + W |
| Change All Occurrences | Cmd + F2, on macOS also Ctrl + Shift + L |
| Format Document | Shift + Alt + F |
| Format Selection | Cmd + Shift + Alt + F |
| Organize Imports | Shift + Alt + O |
| Refactor | Cmd + Shift + R, on macOS also Ctrl + Shift + R |
| Quick Fix | Cmd + . |
| Source Action | Ctrl + Shift + S |
| Command Palette of the code editor | F1, on macOS also Ctrl + Shift + C |
| Go Back or Go Forward | Alt + Shift + - or Alt + Shift + =, on macOS also Ctrl + - or Ctrl + Shift + - |
| Go to Next Problem or Go to Previous Problem | F8 or Shift + F8, on macOS also Ctrl + Shift + . or Ctrl + Shift + , |
| Expand Selection or Shrink Selection | Shift + Alt + → or Shift + Alt + ← |
| Toggle Word Wrap | Alt + Z |
| Add to chat (the selected code) | Cmd + L |
| Run Selected Text in Terminal | Cmd + Alt + Enter |
| Go to Next Change or Go to Previous Change | Alt + F5 or Shift + Alt + F5 |
| Show Next Change or Show Previous Change | Alt + F3 or Shift + Alt + F3 |
| Keep Change or Undo Change | Alt + Y or Alt + N |
| Cut, Copy, Paste (fixed) | Cmd + X, Cmd + C, Cmd + V |
Fold All, Unfold All, Indent Using Spaces, Indent Using Tabs, Save Without Formatting, Add Annotation and Toggle Column Selection have no key at first: you can give them one.
Editing a change
These work in the editor that opens when you edit a change, in the chat or in a review. They are built in and cannot be changed.
| Action | Shortcut |
|---|---|
| Find | Cmd + F |
| Find and Replace | Cmd + Alt + F |
| Find Next Match | Cmd + D |
| Find Again or Find Previous | Cmd + G or Cmd + Shift + G |
| Toggle Line Comment | Cmd + / |
| Toggle Block Comment | Shift + Alt + A |
| Move Line Up or Move Line Down | Alt + ↑ or Alt + ↓ |
| Copy Line Up or Copy Line Down | Shift + Alt + ↑ or Shift + Alt + ↓ |
| Insert Blank Line | Cmd + Enter |
| Indent or Outdent | Tab or Shift + Tab |
| Decrease Indent or Increase Indent | Cmd + [ or Cmd + ] |
| Select All | Cmd + A |
| Clear Selection | Esc |
| Go to Start of File or Go to End of File | Cmd + ↑ or Cmd + ↓ on macOS, Ctrl + Home or Ctrl + End on Windows and Linux |
| Select to Start of File or Select to End of File | Add Shift to the keys above |
| Delete to End of Line (macOS only) | Ctrl + K |
| Undo or Redo | Cmd + Z or Cmd + Shift + Z, and Ctrl + Y to redo on Windows and Linux |
Related
Need help?
Ask the team, read what changed, or learn from the blog.