• TextMate 通用快捷键


    http://unmi.cc/textmate-html-shortcuts/

    对于 Unix 族下的文本编辑器,VI 功能稍弱,Emacs 的能力是没得说,但学习曲线太陡峭了,于是簇拥到 TextMate 旗下。快捷键能让你大大的提 升使用的效率,它可以让你的手尽量少在键盘与鼠标之间飘来飘去。相比于 Windows 平台,Mac 更推崇使用快捷键来操作,搭配着大大的触摸板后,鼠标真的就有点多余了。

    这里列出的所谓通用快捷键是不怎么涉及那些 Bundle 中的特定的快捷键而言的,还有些是系统通用的快捷方式也会提到

    1. mate 命令:

    mate .      以当前目录启动一个项目
    mate a.txt b.txt *.csv  afolder afolder/bfolder  指定文件、通配符的方式,或目录来启动一下项目

    command + option + L       显示行号
    ctrl + R                   执行光标前或选择的 shell 命令,并把执行结果输出到当前位置
    ctrl + L                   把当前行试图移动屏幕中央
    ESC                        自动补全
    ctrl + w                   选取一个单词
    command + shift + ->       选中光标右面的内容
    command + shift + <-       选中光标左面的内容
    option|ctrl + shift + >    选中光标右面的单词
    option|ctrl + shift + <    选中光标左面的单词
    command + shift + L        选取一行信息
    option                     选择多行之后,按下 option 后,在起始选择后当前光标的矩形区以列模式选择
                               或者按住 option 不放,拖动光标进行列模式选取
    
    command + ]                增加缩进
    command + [                减少缩进
    command + option + [       格式化代码,类似 Eclipse 中的 ctrl + shift + f
    ctrl + command + 上箭头       向上移动整行
    ctrl + command + 下箭头       向下移动整行
    ctrl + command + ->        选择部分右移
    ctrl + command + <-        选择部分左移
    
    ctrl + k 或 command + fn + delete     删除当前光标处至行末
    command + delete           删除当前光标处至行首
    ctrl + shift + K           删除当前行
    ctrl + y                   前面删除的内容恢复回来
    command + /                注释一行
    command + return           在当前行下增加新行
    shift + command + return   当前行末加个点,然后下面增加新行
    shift + ctrl + d           复制当前行到下一行
    
    ctrl + option + command + V    从历史中选择内容粘帖
    
    ctrl + U                   转换成大写
    ctrl + shift + U           转换成小写
    ctrl + option + U          转换成首字母大写
    ctrl + G                   反转大小写
    ctrl + T                   上下两行交换
    
    command + L                定位到某一行
    command + 数字               选择某个标签
    ctrl + tab                 在菜单栏和页面切换
    command + -> 或 ctrl + E    光标回到行尾
    command + <- 或 ctrl + A    光标回到行首
    command + 上箭头              光标回到页首
    command + 下箭头              光标回到页尾
    option|ctrl + ->           光标向右移动一个单词
    option|ctrl + <-           光标向左移动一个单词
    ctrl + 上箭头                 向上移动一屏
    ctrl + 下箭头                 向下移动一屏
    
    command + shift + T        当前文件中所有方法列表,像 Eclipse 里的 ctrl + O
    ctrl + shift + T           查看 TODO 列表,识别 //TODO, //CHANGED 和 //FIXME 三种标记
    command + T                查找打开项目下的文件,类似 Eclipse 中的 ctrl + shift + r
    ctrl + command + R         在项目文件树中找到当前编辑器里对应的文件,像 Xcode 的 command + shift + j
    ctrl + shift + A           打开svn选项
    command + W                关闭标签
    command + shift + W        关闭项目
                                     foo
    command + F2               标记
    F2                         在标记间切换
    F1                         收起或展开当前块
    
    command + F                页面中搜索或替换文字
    command + shift + F        项目中搜索替换文字
    command + G                下一个搜索文字
    command + shift + G        上一个搜索文字
    command + option + F       替换一个
    command + ctrl + F         全部替换
    
    command + option + S       全部保存
    command + shift + S        另存为。。。。
    
    command + option + ->      项目中右面的标签
    command + option + <-      项目中左面的标签

    值得多一点关注的快捷键已用粗体和不同颜色显著标识了出来。

  • 相关阅读:
    ios awakeFromNib 和 initWithCoder:
    iOS 关于iphone6 和 iphone6 plus 的适配
    iOS 目录的使用
    iOS 8 WKWebView 知识点
    iOS 动画结束后 view的位置 待完善
    iOS coredata 数据库升级 时报Can't find model for source store
    iOS 真机文件系统区分大小写,而模拟器可能不区分
    iOS coredata 级联删除
    iOS 关于AFNetworking ssl 待完成
    iOS 关于UIWindow的理解
  • 原文地址:https://www.cnblogs.com/Leo_wl/p/4395017.html
Copyright © 2020-2023  润新知