Xcode 设置删除一整行或多行的快捷键

IDE 2020-03-20 阅读 224 评论 0

最新版的 Xcode 默认是没有删除行的快捷键,需要手动添加设置。依次选择菜单 Xcode -> Preferences -> Key Bindings,或者使用快捷键 + , 。在搜索框输入 delete line,可以筛选到 Delete Line (Deletions),但是 Key 是空的。

双击 Key 那一列,按下你想设置的快捷键,如 Control (或者 Ctrl) ⌃ + Shift ⇧ + K 

最后更新 2020-03-20
MIP.watch('startSearch', function (newVal, oldVal) { if(newVal) { var keyword = MIP.getData('keyword'); console.log(keyword); // 替换当前历史记录,新增 MIP.viewer.open('/s/' + keyword, {replace: true}); setTimeout(function () { MIP.setData({startSearch: false}) }, 1000); } }); MIP.watch('goHome', function (newVal, oldVal) { MIP.viewer.open('/', {replace: false}); });