ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
### 常用快捷键 1. 输入法切换 `control+option+space` `control+space` 2. 在Finder中打开当前目录的ITerm `control+option+T` 3. 光标行末/行首 `command+left/right` 4. 单词的首尾跳转 `option+left/right` 5. 文档的首尾跳转 `command+top/bottom` 6. 选择文档的快捷键 - 选中当前位置到本行开头/结尾的文本:`shift+command+left/right` - 选中当前单词开头/结尾的文本:`shift+option+left/right` - 选中当前文档开头/结尾的文本:`shift+command+top/bottom` 7. Finder的快捷键 - 选中文件`回车`重命名 - `Command+N`打开一个新的标签页 - `Command+Shift+N`新建一个新的文件夹 ### Iterm2 清屏:command+r `item2login.sh 22 yckj0881 10.128.123.110 Shamrock5488$` ### 重置 ```bash cd ~/Library/Preferences/ defaults delete com.googlecode.iterm2 ```  #### 在访达中设置快捷打开 ##### 第一步:打开Mac自带程序`自动操作`,新建`快速操作 开始创建服务 参数设置 ##### 第二步:点击操作,选择`资源库`下面的`实用工具`,点击`运行AppleScript`拖入到右边 添加服务 ##### 第三步:将下面的代码放到AppleScript里面,保存为Open iTerm ```applescript on run {input, parameters} tell application "Finder" set pathList to (quoted form of POSIX path of (folder of the front window as alias)) set command to "clear; cd " & pathList end tell tell application "System Events" -- some versions might identify as "iTerm2" instead of "iTerm" set isRunning to (exists (processes where name is "iTerm")) or (exists (processes where name is "iTerm2")) end tell tell application "iTerm" activate set hasNoWindows to ((count of windows) is 0) if isRunning and hasNoWindows then create window with default profile end if select first window tell the first window if isRunning and hasNoWindows is false then create tab with default profile end if tell current session to write text command end tell end tell end run ``` 代码意思是将当前最前面的Finder地址如果获取不到,则返回桌面地址 然后通知iTerm的第一个窗口新建标签并跳到这个目录去 ##### 第四步:打开`系统偏好设置`-》`键盘`-》`快捷键`-》`服务` **注意:**设置的快捷键不能与`Finder`自带快捷键冲突。 ##### 第五步:重启`Finder`,打开终端输入:`killall Finder` ##### 第六步:随意进入一个文件夹,使用快捷键吧~ ### VsCode 1. 格式化:`command+shift+F` 2. 上下文本换行:`option+up/down` 3. 点击行号,选中当前行 4. 双击选中单词,三击选中当前行,四击选中文档 5.