xcode快捷键:实用+零碎纪录

来源:互联网 发布:手机淘宝链接地址 编辑:程序博客网 时间:2024/05/16 01:39

调出快捷键面板: Command 键图标 ,(逗号)

将一行移上去:Option 或 Alt 键图标Command 键图标 [

press Shift+ Option ⌥ +Command ⌘, too, and open file in new tab.

command + shift  + F             替换

Command+Shift+3                截图(当前屏幕)
Command+Shift+4                截图(自由选取范围)

alt+点击方法名                      出现该方法的说明




Command 键图标(Command 键) - 在某些 Apple 键盘上,此键也可能带有 Apple 标志(apple 标志
Control 键图标(Control 键)
Option 或 Alt 键图标(Option 键)-“Alt”可能也出现在此键上
Shift 键图标(Shift 键)
Caps lock 键图标(Caps Lock 键)- 切换大写字母锁定开或关
fn(功能键)
---------------------------------------------------------------------------------------------------------------------------------------------------


http://stackoverflow.com/questions/5353220/how-can-i-make-the-tabs-work-normally-on-xcode-4

I solved this (somehow) for me by exactly identifying the actions I do which cause the tab to switch to another file and replace them by their equivalent actions which open a new tab instead.

  • Instead of single-clicking a file in the navigator, I always double-click which I have set to open a new tab
  • Most time I do not use the navigator, as it has a different state of opened and closed folders in each tab. Not useful for me. So I switched to usingOption ⌥Command ⌘O. When opening a file from this list I keepShiftOption ⌥ pressed. In the small window appearing I choose 'new tab'.
  • When clicking on links in code I press ShiftOption ⌥ Command ⌘, too, and open in new tab.


----------------------------------------------------------------------------------------------------------------------------------------------------------

零碎记录

官方

和Xcode打了几个月的交道,总结一下我最常用也是最喜欢的几个快捷键。总的来说Xcode快捷键并不是非常丰富灵活,但熟悉了下面为数不多的几个快捷键以后工作效率马上可以提高不少。

  • Command-Option-Up: 切换.h和.m
  • Command-Shift-D: 快速打开文件
  • Control-2: 快速浏览当前文件成员
  • Alt-Command-Left/Right: 前一个/后一个编辑位置
  • Command-Shift-E: 最大化文件编辑区域
  • Control-/: 切换到下一个占位符(自动完成的时候)
  • Control-.: 下一个自动完成提示
  • Command-E: 使用当前选中内容查找
  • Command-G: 在当前文件中查找下一个
  • Command-Shift-F: 在项目中查找
  • Command-Alt-Shift-T: 在Groups&Files里定位到当前编辑的文件
  • Command+双击:浏览源文件
  • Alt+双击:查找帮助

外加一句,深感XCode一定要用All-In-One单窗口的Layout才好用。



mac快捷键,列的简单清楚。

http://support.apple.com/kb/HT1343?viewlocale=zh_CN&locale=zh_CN


mac快捷键

F11                                     回到桌面 

Command+tab                   为切换当前工作任务
Command+Shift+3                截图(当前屏幕)
Command+Shift+4                截图(自由选取范围)
Command+M                       将目前使用的窗口最小化
Command+H                        隐藏当前窗口或者软件
Command+Option+esc             键可以强行退出死机程序
Option+F12                        关机窗口(能选择关机、重起、睡眠)
Command+W                      将当前窗口关闭(可以关闭Safari标签栏,很实用)

Command+Option+W          将所有窗口关闭
Command+Q                      关闭当前应用程序(相当于Dock鼠标右键推出.很实用)
Command+delete                移到废纸篓(删除)
Optionion+鼠标                  拖图像或文件夹可以将图像或文件夹拷贝到其它文件夹中,而不是移动


http://en.wikipedia.org/wiki/Table_of_keyboard_shortcuts#cite_note-HT1343-1

General shortcuts

抽空要好好研究一下。

ctrl+tab       Switch focus to the next/previous tab within a window

cmd+tab     在不同窗口里切换


这个列的还蛮全的,备用

http://blog.csdn.net/muyu114/article/details/6865427


原创粉丝点击