码迷,mamicode.com
首页 > 其他好文 > 详细

xcode 快捷键

时间:2015-02-11 10:50:00      阅读:147      评论:0      收藏:0      [点我收藏+]

标签:

CMD + SHIFT + {   - Select Next Tab

CMD + SHIFT + }   - Select Previous Tab

toggle between .h and .m files in xcode5     CTRL+CMD+up arrow

在xcode的所有窗口循环切换:       CMD+`

显示代码中的函数列表:               CTRL+6

show Project Navigator:          Command + 1

Show/Hide Navigator Panel: Command + 0

Show/Hide Utilities Panel: Command + Option + 0

Open file in Assistant Editor:    Option + Left-click on file in Project Navigator

Open file Quickly: Command + Shift + O                    (O is char)

Find Navigator (ie. Search): Command + Shift + F

Build the app: Command + B

Run the app: Command + R

Clean the project: Command + Shift + K

Documentation and Reference: Command + Shift + 0 (Zero)

Quick Help: Option + Left-click on class or method name

 

 

ios 模拟器的快捷键:

home button:              Cmd-Shift-H

模拟器中关闭一个app: shift+command+H twice to simulate the double tap of home button, and then swipe your app‘s screenshot upward to close it.

-------------------------查看模拟器输出的log-----------------------------------------

iOS Simulator prints directly to stdout, so you can see the logs mixed up with system logs.

Open the Terminal and type: tail -f /var/log/system.log

Then run the simulator.

EDIT:

This stopped working on Mavericks/Xcode 5. Now you can access the simulator logs on it‘s own folder: ~/Library/Logs/iOS Simulator/<sim-version>/system.log

You can either use the Console.app to see this, or just do a tail (iOS 7.0.3 64 bits for example):

tail -f ~/Library/Logs/iOS\ Simulator/7.0.3-64/system.log

Under iOS 8 this location is now:

~/Library/Logs/CoreSimulator/<DEVICE_CODE>

So, the following will work:

tail -f ~/Library/Logs/CoreSimulator/<DEVICE_CODE>/system.log

The DEVICE_CODE value can be found via the following console command:

instruments -s devices

-------------------------查看模拟器输出的log end----------------------------------------- 

xcode 快捷键

标签:

原文地址:http://www.cnblogs.com/welhzh/p/4285425.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!