### 常用快捷鍵
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.
- 前端
- C1-Javascript
- H5圖片分塊和斷點續傳
- JavascriptPatterns[Stoyanstefanov]
- macotask和microtask
- 前端代碼生成器
- 跨域
- 頁面回到頂部滾動按鈕實現
- C2-CSS
- 瀏覽器的一些單位
- 盒模型
- 移動端判斷橫豎屏
- C3-框架
- ReactNative
- 開發環境搭建(安卓篇)
- Vue
- vue+pdfjs使用
- vue+typescript使用實踐
- vue+webpack3.x集成typescript
- Vue源碼3
- vue源碼分析1
- vue源碼分析2
- vue筆記
- C4-工具
- git
- Gitlab-CICD
- mock規則
- vscode-settings
- webpack自定義命令,切換代理地址
- 正則表達式
- 深入淺出webpack
- C5-Node
- express
- express源碼閱讀
- nightmare使用指南
- 爬蟲1.0
- C6-微信
- 微信
- C7-Canvas
- 基礎API
- 前端隨筆筆記
- 后端
- C1-Java
- shiro
- C2-Linux
- ffmpeg
- ITerm
- Linux
- MongoDB安裝
- MySql安裝
- Ngnix反向代理
- 常見錯誤
- 備忘
- mac
- 備忘-Work
- 備忘Link
- 服務器資源
- 教程
- Hexo個人博客搭建筆錄
- 文檔
- CSS編碼規范
- 前端編碼規范
- 隨筆
- 整理
- 正則
- 鏈接收藏
- 面試
- CodeWars題庫
- CodeWars題庫(二)
- Java社招面試題
- Java面試
- Web面試
- 前端筆試題
- 筆試題