Xcode Preview Resume Button Shortcut
Asked Answered
T

3

29

Is there a keyboard-shortcut to click the resume button in the canvas on Xcode Previews, instead of clicking it every time?

Tamboura answered 8/7, 2019 at 20:41 Comment(0)
S
61

⌘ command + option + P is what you're looking for.

Xcode screenshot

Scanner answered 9/7, 2019 at 0:6 Comment(0)
C
14

Quick Answer

Editor -> Previews -> Refresh

Refresh canvas shortcut

⌥ option + ⌘ command + P

Open canvas shortcut

⌥ option + ⌘ command + ↩ return


💡 Automated way to refresh the preview

Note that there is an option called Automatically Refresh Canvas that is enabled by default and helps you to not refreshing it manually again and again.


🎁 How to find ANY macOS apps shortcuts

In almost all macOS apps, you can use help menu to find the submenu item you want (some kind of preview in this case). And it will show you the exact location of the submenu alongside the associated shortcut:

Preview

I have searched for preview for this case :)

Cindycine answered 4/2, 2020 at 13:43 Comment(1)
I have never used that search functionality under the Help menu item. It turned out be pretty useful :) Thank you for sharing this trick!Hobbledehoy
R
1

Xcode 15.2

In the latest version of Xcode, you can do this under Editor > Canvas > Refresh Canvas (or option + command + p).

enter image description here

Riel answered 11/2, 2024 at 14:56 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.