Storyboard Zoom In/Out Keyboard Shortcut

2020-05-18 05:01发布

问题:

What shortcut key combination can I use in Xcode to zoom in and out? Yes, I know this is a silly question but a Google search didn't give me any result. Even the Xcode keyboard shortcuts didn't give me much info. Maybe I must ask for a better updated keyboard shortcut doc for Xcode 4.5

回答1:

Try this

Zoom Out = shift+command+alt+{

Zoom In = shift+command+alt+}

This worked for me!



回答2:

You can also double click with mouse on empty area of storyboard. First time will zoom out, second time - zoom in. Sometimes it's easier than use difficult hotkey.



回答3:

From Mouse or Trackpad -> Right Click will show you options. Hope this will help



回答4:

Just figured this out -.- Make sure you're using a story board. Then you can go to editor -> canvas -> zoom Shortcuts are alt, command { and alt, command }



回答5:

Go to

System preferences >> Keyboard >> Shortcuts

Select App Shortcuts Click on Plus icon (+)



回答6:

In Xcode 7, the shortcuts have changed to the following:

  • Zooming out : cmd (⌘) + -
  • Zooming In : cmd (⌘) + +
  • Normal (100%) : cmd (⌘) + ctrl (^) + =


回答7:

If you have a trackpad you can also pinch to zoom in/out (but yeah, that's not a "keyboard shortcut" :)



回答8:

The accepted answer from Rohit works, but the menu option simply says Command+Alt+{ and Command+Alt+} on XCode 5, i.e. Alt is not necessary. Funny thing is other SO answers said zoom was NOT possible, maybe added in later Xcode 4x or 5?

Apple loves whitespace and wide margins, but if you have more than a few screens, zooming is absolutely essential even on 4k displays!



回答9:

If you have a trackpad, you can click on the storyboard and single tap with two fingers to get a menu of zoom options.

Note: if you don't have the tap with two finger gesture setup, you can go to System Preferences > Trackpad > Point & Click. Then change Secondary click to "Click or tap with two fingers"



标签: xcode4