zoukankan      html  css  js  c++  java
  • Xcode 复制多行/移动某行/删除多行 快捷键

    https://developer.aliyun.com/article/49215

    简介:

    首先,用XCode打开

    /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/IDETextKeyBindingSet.plist

    增加

    <key>My Custom Keys</key>
    <dict>
        <key>Move Line Up</key>
        <string>selectLine:, cut:, moveUp:, moveToBeginningOfLine:, paste:, moveUp:</string>
        <key>Move Line Down</key>
        <string>selectLine:, cut:, moveDown:, moveToBeginningOfLine:, paste:, moveUp:</string>
        <key>Duplicate Line</key>
        <string>moveToBeginningOfLine:, deleteToEndOfLine:, yank:, insertNewline:, moveToBeginningOfLine:, yank:</string>
        <key>Delete Line</key>
        <string>selectLine:, delete:</string>
    </dict>
    进入xcode,Command+, 打开快捷键设置,搜索刚刚设置的key名称,输入你想设置的快捷键即可。
     
     
     
    1. plist文件权限
    sudo chmod 666 /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/IDETextKeyBindingSet.plist
    
    sudo chmod 777 /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/
    
    open /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/IDETextKeyBindingSet.plist
    
    1. Insertions and Indentations添加键值
    Duplicate Current Line selectLine:, copy:, moveToEndOfLine:, moveToBeginningOfLine:, paste:, moveBackward:
    Insert Line Below moveToEndOfLine:, insertNewline:
    1. 重启Xcode,设置快捷键

     
    image.png


    作者:喵喵粉
    链接:https://www.jianshu.com/p/fb5d0ed911aa
    来源:简书
    著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
  • 相关阅读:
    smarty模板中如何嵌入javascript脚本
    正则表达式(一)
    c#获取凌晨时间
    启动VUE项目报错:Error: Cannot find module 'node-sass'
    安装VUE过程记录
    Jenkins自动化工具完整介绍
    使用VS开发C#的常用快捷键
    获取枚举中的描述值
    PDF链接转字节流输出
    MSSQL执行计划的优化建议
  • 原文地址:https://www.cnblogs.com/sundaysgarden/p/14219468.html
Copyright © 2011-2022 走看看