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

  1. 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 ⌘ K or Ctrl K.

  2. 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. Esc cancels, and Delete removes the shortcut.

  3. 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.

  4. 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

ActionShortcut
Command PaletteCmd + K
Run a Command (the palette, with commands only)Cmd + Shift + P
Quick Open (a file by its name)Cmd + P
Show ShortcutsShift + /
Open SettingsCmd + ,
Open SubscriptionCmd + B
SaveCmd + S
Reload the PreviewCmd + R
UndoCmd + Z
RedoCmd + Shift + Z, or Ctrl + Y on Windows and Linux
Close a Dialog or Menu (fixed)Esc
ActionShortcut
DesignCmd + 1
CodeC, or Cmd + 2
PreviewP, or Cmd + 3
Toggle RoadmapCmd + Shift + D
Toggle Site mapCmd + Shift + M
Source ControlCmd + Shift + H
Toggle Left PanelCmd + /
Toggle Right PanelCmd + \
Chat FullscreenCmd + Shift + \
Toggle TerminalCmd + J
Toggle DevToolsCmd + Shift + I
Focus ModeCmd + Shift + .
Chat in a window (and back, from that window)Cmd + Alt + Shift + C
Developer tools in a windowCmd + Alt + Shift + D
Terminal in a windowCmd + Alt + Shift + T
Code in a windowCmd + Alt + Shift + E

Canvas

ActionShortcut
SelectV
PanH
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 TextT
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 OutCmd + = or Cmd + -
Zoom FitCmd + 0
Zoom to SelectionShift + 2
Next Section or Previous Section of the boardN or Shift + N
Wireframe ViewShift + W
Pixel GridShift + P
RulersShift + R
Show GuidesCmd + ;
Lock GuidesCmd + Alt + ;
Layout GridShift + G

Selection

ActionShortcut
Edit Text or Select Children (on the selected element)Enter
Select ParentShift + Enter
Select Next Layer or Select Previous LayerTab or Shift + Tab
Select Matching LayersCmd + Alt + A
Lock or UnlockCmd + Alt + L
Show or HideCmd + Alt + Shift + H
Create ComponentCmd + Alt + K

Edit

ActionShortcut
CopyCmd + C
CutCmd + X
PasteCmd + V
DuplicateCmd + D
Copy StyleCmd + Alt + C
Paste StyleCmd + Alt + V
Paste to ReplaceCmd + Shift + R
DeleteDelete or Backspace
Wrap (in a new container)Cmd + G
UnwrapCmd + Shift + G
Add LayoutShift + 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.

ActionShortcut
Nudge by 1 px, or move before or after a neighbor←, →, ↑, ↓
Nudge by 10 px, or move before or after a neighborShift + an arrow
Bring to FrontCmd + Alt + ]
Bring ForwardCmd + ]
Send BackwardCmd + [
Send to BackCmd + Alt + [
Flip HorizontalShift + H
Flip VerticalShift + V
Align Left, Align Horizontal Centers, Align RightAlt + A, Alt + H, Alt + D
Align Top, Align Vertical Centers, Align BottomAlt + W, Alt + V, Alt + S
Distribute Horizontally or Distribute VerticallyAlt + Shift + H or Alt + Shift + V
Tidy UpCmd + 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.

ActionShortcut
Resize Frame to DesktopCmd + Shift + 1
Resize Frame to LaptopCmd + Shift + 2
Resize Frame to TabletCmd + Shift + 3
Resize Frame to PhoneCmd + Shift + 4
Focus the CardF
Edit the CardE
Card DetailsI

Site map

These work while the Site map has focus, not while you type in a field.

ActionShortcut
Fit the mapF
Arrange the map (the pages laid out again, in the order of their links)Shift + L

Chat

ActionShortcut
New AI ChatCmd + 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.

ActionShortcut
Turn Annotate on or offM
Move to the parent or the child element↑ or ↓
Add an element to the note, or take it outShift + click
Add the element to the chatAlt + click
Post the noteEnter
New line in the noteShift + Enter
Send the note to Lyna AICmd + Enter
Move the note to the chatCmd + L
Close the note, then AnnotateEsc

Agent Review

These work on the changes page after a review. See Agent Review.

ActionShortcut
Next issueF7
Previous issueShift + F7
Back to the toolbar or the list from an issueEsc

Developer tools

These work in the bottom panel: the tabs of the developer tools, the terminal and the output.

ActionShortcut
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.

ActionShortcut
Search in files (Search opens, the cursor in its field)Cmd + Shift + F
Code panel full screenCtrl + Cmd + F on macOS, Ctrl + Windows + F on Windows and Linux
FindCmd + F
Find and ReplaceCmd + Alt + F
Go to Symbol in EditorCmd + Shift + O
Go to DefinitionF12, on macOS also Ctrl + Shift + G
Go to Type DefinitionCtrl + Shift + Y
Go to ImplementationsCmd + F12, on macOS also Ctrl + Shift + I
Find All ReferencesShift + F12, on macOS also Ctrl + Shift + U
Peek DefinitionAlt + F12, on macOS also Ctrl + Shift + J
Peek ImplementationsCmd + Shift + F12, on macOS also Ctrl + Shift + X
Rename SymbolF2, on macOS also Ctrl + Shift + W
Change All OccurrencesCmd + F2, on macOS also Ctrl + Shift + L
Format DocumentShift + Alt + F
Format SelectionCmd + Shift + Alt + F
Organize ImportsShift + Alt + O
RefactorCmd + Shift + R, on macOS also Ctrl + Shift + R
Quick FixCmd + .
Source ActionCtrl + Shift + S
Command Palette of the code editorF1, on macOS also Ctrl + Shift + C
Go Back or Go ForwardAlt + Shift + - or Alt + Shift + =, on macOS also Ctrl + - or Ctrl + Shift + -
Go to Next Problem or Go to Previous ProblemF8 or Shift + F8, on macOS also Ctrl + Shift + . or Ctrl + Shift + ,
Expand Selection or Shrink SelectionShift + Alt + → or Shift + Alt + ←
Toggle Word WrapAlt + Z
Add to chat (the selected code)Cmd + L
Run Selected Text in TerminalCmd + Alt + Enter
Go to Next Change or Go to Previous ChangeAlt + F5 or Shift + Alt + F5
Show Next Change or Show Previous ChangeAlt + F3 or Shift + Alt + F3
Keep Change or Undo ChangeAlt + 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.

ActionShortcut
FindCmd + F
Find and ReplaceCmd + Alt + F
Find Next MatchCmd + D
Find Again or Find PreviousCmd + G or Cmd + Shift + G
Toggle Line CommentCmd + /
Toggle Block CommentShift + Alt + A
Move Line Up or Move Line DownAlt + ↑ or Alt + ↓
Copy Line Up or Copy Line DownShift + Alt + ↑ or Shift + Alt + ↓
Insert Blank LineCmd + Enter
Indent or OutdentTab or Shift + Tab
Decrease Indent or Increase IndentCmd + [ or Cmd + ]
Select AllCmd + A
Clear SelectionEsc
Go to Start of File or Go to End of FileCmd + ↑ or Cmd + ↓ on macOS, Ctrl + Home or Ctrl + End on Windows and Linux
Select to Start of File or Select to End of FileAdd Shift to the keys above
Delete to End of Line (macOS only)Ctrl + K
Undo or RedoCmd + Z or Cmd + Shift + Z, and Ctrl + Y to redo on Windows and Linux

Need help?

Ask the team, read what changed, or learn from the blog.