vscode / 杂项
生活随笔
收集整理的這篇文章主要介紹了
vscode / 杂项
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
1、設(shè)置快捷鍵與windows保持一致的方法
安裝插件 Windows default keybindings 。
2、解決 tab 過短的問題
設(shè)置“Editor:Font Family”為 'monospace' 。
3、批量格式化代碼的插件。
Format Files
4、格式化代碼
- 在 Windows 上:Shift + Alt + F
- 在 Mac 上:Shift + Option + F
- 在 Ubuntu 上:Ctrl + Shift + I
5、向上 / 向下 復(fù)制行
- 在 Windows 上:Shift + Alt + Up / Down
- 在 Mac 上:Shift + Option + Up / Down
- 在 Ubuntu 上:Ctrl + Shift + Alt + Up / Down
6、單詞選中
- 在 Windows 上:Ctrl+ d
- 在 Mac 上: Command + d
- 在 Ubuntu 上: Ctrl+ d
7、打開關(guān)閉側(cè)邊欄
- 在 Windows 上:Ctrl+ b
- 在 Mac 上:Command + b
- 在 Ubuntu 上:Ctrl+ b
8、刪除上一個(gè)詞
- 在 Windows 上:Ctrl + backspace
- 在 Mac 上:Option + delete
- 在 Ubuntu 上:Ctrl + backspace
9、選中詞
- 在 Windows 上:Ctrl + Shift + 右鍵頭 / 左鍵頭
- 在 Mac 上:Option + Shift + 右鍵頭 / 左鍵頭
- 在 Ubuntu 上:Ctrl + Shift + 右鍵頭 / 左鍵頭
?10、連續(xù)選中詞
- 在Windows系統(tǒng): Ctrl鍵 + Shift鍵 + 右箭頭 / 左箭頭
- 在Mac系統(tǒng): Command鍵 + Shift鍵 + 右箭頭 / 左箭頭
- 在Ubuntu系統(tǒng): Ctrl鍵 + Shift鍵 + 右箭頭 / 左箭頭
11、選中行
- 在 Windows 上:Ctrl + Shift + d
- 在 Mac 上:Command + Shift +d
- 在 Ubuntu 上:Ctrl + Shift + d
12、刪除行
- 在 Windows 上:Ctrl + x
- 在 Mac 上:Command + x
- 在 Ubuntu 上:Ctrl + x
13、跳轉(zhuǎn)到特定行
- 在 Windows 上:Ctrl + g
- 在 Mac 上:Ctrl + g orCtrl + p
- 在 Ubuntu 上:Ctrl + g
14、添加多個(gè)光標(biāo)
- 在 Windows 上:Ctrl + Alt + Up/Down
- 在 Mac 上:Command + Alt + Up / Down
- 在 Ubuntu 上:Ctrl + Alt + Up / Down
15、對(duì)變量或函數(shù)重命名
- 在Windows系統(tǒng): F2鍵
- 在Mac系統(tǒng): F2鍵
- 在Ubuntu系統(tǒng): F2鍵
(SAW:Game Over!)
總結(jié)
以上是生活随笔為你收集整理的vscode / 杂项的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Java / 关键字
- 下一篇: Linux / Ubuntu Deskt