商業轉載請聯繫作者獲得授權,非商業轉載請註明出處。
作者:龔一峯
鏈接:http://www.zhihu.com/question/24896283/answer/34327939
來源:知乎
尾聲:windows下的快捷鍵一覽
Alt+R : 開啓正則表達式功能 Alt+Enter: 找到匹配目標後全部選擇 Ctrl+R:前往 method(mac下⌘R) Ctrl+M:跳轉到對應括號 按Ctrl+Shift+上下鍵,可替換行 Ctrl+D:選擇單詞,重複可增加選擇下一個相同的單詞 Ctrl+L:選擇行,重複可依次增加選擇下一行 Ctrl+Shift+P:打開命令面板 Ctrl+P:搜索項目中的文件(mac下⌘P),在裏面輸入: admi@auto 可以定位到相應文件夾(admin.html)下的相應方法(auto)。 Ctrl+G:跳轉到第幾行 Ctrl+W:關閉當前打開文件 Ctrl+Shift+W:關閉所有打開文件 Ctrl+Shift+V:粘貼並格式化 Ctrl+Shift+L:選擇多行 Ctrl+Shift+Enter:在當前行前插入新行 Ctrl+X:刪除當前行 Ctrl+U:軟撤銷,撤銷光標位置 Ctrl+J:選擇標籤內容 Ctrl+F:查找內容 Ctrl+Shift+F:查找並替換 Ctrl+H:替換 Ctrl+N:新建窗口 Ctrl+K+B:開關側欄 Ctrl+Shift+M:選中當前括號內容,重複可選着括號本身 Ctrl+F2:設置/刪除標記 Ctrl+/:註釋當前行 Ctrl+Shift+/:當前位置插入註釋 Ctrl+Alt+/:塊註釋,並Focus到首行,寫註釋說明用的 Ctrl+Shift+A:選擇當前標籤前後,修改標籤用的 F11:全屏 Shift+F11:全屏免打擾模式,只編輯當前文件 Alt+F3:選擇所有相同的詞 Alt+.:閉合標籤 Alt+Shift+數字:分屏顯示 Alt+數字:切換打開第N個文件 Shift+右鍵拖動:光標多不,用來更改或插入列內容 鼠標的前進後退鍵可切換Tab文件 按Ctrl,依次點擊或選取,可需要編輯的多個位置 Ctrl+shift+D: 備份多個當前行 Ctrl+shift+T: 恢復已經關閉的標籤 Editing Keypress Command Ctrl + X Delete line Ctrl + ↩ Insert line after Ctrl + ⇧ + ↩ Insert line before Ctrl + ⇧ + ↑ Move line/selection up Ctrl + ⇧ + ↓ Move line/selection down Ctrl + L Select line - Repeat to select next lines Ctrl + D Select word - Repeat select others occurrences Ctrl + M Jump to closing parentheses Repeat to jump to opening parentheses Ctrl + ⇧ + M Select all contents of the current parentheses Ctrl + KK Delete from cursor to end of line Ctrl + K + ⌫ Delete from cursor to start of line Ctrl + ] Indent current line(s) Ctrl + [ Un-indent current line(s) Ctrl + ⇧ + D Duplicate line(s) Ctrl + J Join line below to the end of the current line Ctrl + / Comment/un-comment current line Ctrl + ⇧ + / Block comment current selection Ctrl + Y Redo, or repeat last keyboard shortcut command Ctrl + ⇧ + V Paste and indent correctly Ctrl + Space Select next auto-complete suggestion Ctrl + U soft undo; jumps to your last change before undoing change when repeated Windows Ctrl + Alt + Up Column selection up Ctrl + Alt + Down Column selection down Linux Alt + ⇧ + Up Column selection up Alt + ⇧ + Down Column selection up Navigation/Goto Anywhere Keypress Command Ctrl + P Quick-open files by name Ctrl + R Goto symbol Ctrl + ; Goto word in current file Ctrl + G Goto line in current file General Keypress Command Ctrl + ⇧ + P Command prompt Ctrl + KB Toggle side bar Ctrl + ⇧ + Alt + P Show scope in status bar Find/Replace Keypress Command Ctrl + F Find Ctrl + H Replace Ctrl + ⇧ + F Find in files Tabs Keypress Command Ctrl + ⇧ + t Open last closed tab Ctrl + PgUp Cycle up through tabs Ctrl + PgDn Cycle down through tabs Ctrl + ⇆ Find in files Alt + [NUM] Switch to tab number [NUM] where [NUM] <= number of tabs Split window Keypress Command Alt + ⇧ + 2 Split view into two columns Alt + ⇧ + 1 Revert view to single column Alt + ⇧ + 5 Set view to grid (4 groups) Ctrl + [NUM] Jump to group where num is 1-4 Ctrl + ⇧ + [NUM] Move file to specified group where num is 1-4 Bookmarks Keypress Command Ctrl + F2 Toggle bookmark F2 Next bookmark ⇧ + F2 Previous bookmark Ctrl + ⇧ + F2 Clear bookmarks Text manipulation Keypress Command Ctrl + KU Transform to Uppercase Ctrl + KL Transform to Lowercase