同時(shí)打開多個(gè)窗口(查看多個(gè)項(xiàng)目)
????打開一個(gè)新窗口: Ctrl+Shift+N
????關(guān)閉窗口: Ctrl+Shift+W
同時(shí)打開多個(gè)編輯器(查看多個(gè)文件)
????????新建文件 Ctrl+N
????????文件之間切換 Ctrl+Tab
????????切出一個(gè)新的編輯器(最多3個(gè))Ctrl+\湾趾,也可以按住Ctrl鼠標(biāo)點(diǎn)擊Explorer里的文件名
????????左中右3個(gè)編輯器的快捷鍵Ctrl+1 Ctrl+2 Ctrl+3
????????3個(gè)編輯器之間循環(huán)切換 Ctrl+`
????????編輯器換位置赌躺,Ctrl+k然后按Left或Right
代碼編輯
格式調(diào)整
????????代碼行縮進(jìn)Ctrl+[ Ctrl+]
? ? ? ? ? ?Ctrl+C Ctrl+V如果不選中备图,默認(rèn)復(fù)制或剪切一整行
????????代碼格式化:Shift+Alt+F,或Ctrl+Shift+P后輸入format code
????????上下移動一行: Alt+Up 或 Alt+Down
????????向上向下復(fù)制一行: Shift+Alt+Up或Shift+Alt+Down
????????在當(dāng)前行下邊插入一行Ctrl+Enter
????????在當(dāng)前行上方插入一行Ctrl+Shift+Enter
光標(biāo)相關(guān)
????????移動到行首:Home
????????移動到行尾:End
????????移動到文件結(jié)尾:Ctrl+End
????????移動到文件開頭:Ctrl+Home
????????移動到定義處:F12
????????定義處縮略圖:只看一眼而不跳轉(zhuǎn)過去Alt+F12
????????移動到后半個(gè)括號 Ctrl+Shift+]
????????選擇從光標(biāo)到行尾Shift+End
????????選擇從行首到光標(biāo)處Shift+Home
????????刪除光標(biāo)右側(cè)的所有字Ctrl+Delete
????????Shrink/expand selection: Shift+Alt+Left和Shift+Alt+Right
????????Multi-Cursor:可以連續(xù)選擇多處,然后一起修改,Alt+Click添加cursor或者Ctrl+Alt+Down 或 Ctrl+Alt+Up
????????同時(shí)選中所有匹配的Ctrl+Shift+L
????????Ctrl+D下一個(gè)匹配的也被選中(被我自定義成刪除當(dāng)前行了,見下邊Ctrl+Shift+K)
????????回退上一個(gè)光標(biāo)操作Ctrl+U
重構(gòu)代碼
????????找到所有的引用:Shift+F12
????????同時(shí)修改本文件中所有匹配的:Ctrl+F12
????????重命名:比如要修改一個(gè)方法名拳昌,可以選中后按F2,輸入新的名字钠龙,回車炬藤,會發(fā)現(xiàn)所有的文件都修改過了。
????????跳轉(zhuǎn)到下一個(gè)Error或Warning:當(dāng)有多個(gè)錯(cuò)誤時(shí)可以按F8逐個(gè)跳轉(zhuǎn)
????????查看diff 在explorer里選擇文件右鍵 Set file to compare碴里,然后需要對比的文件上右鍵選擇Compare with ????????'file_name_you_chose'.
查找替換
????????查找 Ctrl+F
????????查找替換 Ctrl+H
????????整個(gè)文件夾中查找 Ctrl+Shift+F
????????匹配符:
????????* to match one or more characters in a path segment
????????? to match on one character in a path segment
? ? ? ? ? ** to match any number of path segments ,including none
????????{} to group conditions (e.g. {**/*.html,**/*.txt} matches all html and txt files)
????????[] to declare a range of characters to match (e.g., example.[0-9] to match on example.0,example.1, …
顯示相關(guān)
????????全屏:F11
????????zoomIn/zoomOut:Ctrl + =/Ctrl + -
????????側(cè)邊欄顯/隱:Ctrl+B
????????側(cè)邊欄4大功能顯示:
????????Show Explorer Ctrl+Shift+E
????????Show SearchCtrl+Shift+F
????????Show GitCtrl+Shift+G
????????Show DebugCtrl+Shift+D
????????Show OutputCtrl+Shift+U