記錄下Sublime Text Mac版的快速鍵

來源:互聯網
上載者:User

標籤:style   http   io   ar   os   使用   sp   for   on   

  • 推薦使用最新版本的Chrome/Safari或者Firefox瀏覽器瀏覽此頁,否則Mac按鍵可能無法正常展示
  • The Latest Version of Chrome/Safari or Firefox is Recommeded.
Keypress Command
? + X Delete line
? + ? + K Delete line
? + ? Insert line after
? + ? + ? Insert line before
? + ? + ↑ Move line/selection up
? + ? + ↓ Move line/selection down
? + L Select line - Repeat to select next lines
? + D Select word - Repeat select others occurrences
? + M Jump to closing parentheses Repeat to jump to opening parentheses
? + K, ? + K Delete from cursor to end of line
? + K Delete from cursor to end of line
? + [K] + ? Delete from cursor to start of line
? + ] Indent current line(s)
? + [ Un-indent current line(s)
? + ? + D Duplicate line(s)
? + J Join line below to the end of the current line
? + / Comment/un-comment current line
? + ? + / Block comment current selection
? + Y Redo, or repeat last keyboard shortcut command
? + ? + V Paste and indent correctly
? + Space Select next auto-complete suggestion
? + Z Undo
? + Y Redo insert snippet
? + U Soft undo; jumps to your last change before undoing change when repeated
? + ? + U Soft redo (movement redo)
? + T Swap two letters or, better yet, two words
—————————
Navigation/Goto Anywhere
Keypress Command
? + P Quick-open files by name
? + R Goto symbol、go to methods
? + G Goto line in current file
? + T Go to file
? + ? + P Go to project
? + Left/Right Go to Beginning or End of Line
? + Left/Right Move between words
? + L Scroll to selection
? + M Jump to matching bracket
? + Tab Next file in stack
? + ? + Tab Previous file in stack
—————————
General
Keypress Command
? + ? + P Command prompt, Command palette
? + K, ? + B Toggle side bar
? + ? + P Show scope in status bar
? + ` Python console
? + = Larger Text
? + - Smaller Text
? + ? + F Enter full screen
? + ? + ? + F Enter distraction free mode
? + M Minimize
? + ? + M Minimize all
? + Q Record macro
? + ? + Q Play back macro
—————————
Find/Replace
Keypress Command
? + F Find
? + ? + F Replace
? + ? + E Replace next
? + ? + F Find in files
? + ? + G, ? + G Find next occurrence of current word
? + ? + G Find previous occurrence of current word
? + ? + G Select all occurrences of current word for multiple editing
? + I Incremental find
? + D Quick add next
? + E Use selection for find
? + ? + E Use selection for replace
—————————
File Operation
Keypress Command
? + N New file
? + O Open file
? + ? + T Reopen closed file
? + S Save file
? + ?+ S Save as…
? + ? + S Save all
? + ?+ N New window
? + ?+ W Close window
? + W Close file
—————————
Selection
Keypress Command
? + ? + ↑ Add previous line
? + ? + ↓ Add next line
? + A Select all
? + L Expand selection to line
? + D Expand selection to word
? + ?+ M Expand selection to brackets
? + ?+ J Expand selection to indentation
? + ?+ A Expand selection to Tag
? + ?+ L Select lines, and then split it into many selections, one per line
? + Left/Right Add or remove word selection
Esc Go from multiple selections to a single selection
—————————
Tabs
Keypress Command
? + ? + t Open last closed tab
? + ? + ← Cycle up through tabs
? + ? + ? Cycle down through tabs
—————————
Split window
Keypress Command
? + ? + 2 Split view into two columns
? + ? + 1 Revert view to single column
? + ? + 5 Set view to grid (4 groups)
? + [NUM] Jump to group where num is 1-4
? + ? + [NUM] Move file to specified group where num is 1-4
? + [1,2,3…] Select tab
—————————
Bookmarks
Keypress Command
? + F2 Toggle bookmark
F2 Next bookmark
? + F2 Previous bookmark
? + ? + F2 Clear bookmarks
—————————
Text manipulation
Keypress Command
? + K, ? + U Transform to Uppercase
? + K, ? + L Transform to Lowercase
F5 Sort lines
? + F5 Sort lines(case sensitive)
? + ? + T Special characters
—————————
XML/HTML
Keypress Command
? + ? + A Select content into tag
? + ? + . Close tag
? + ? + W Wrap the selected text in the HTML tag
—————————
Marks
Keypress Command
? + K + space Set mark // ?K; for me
? + K + W Delete from cursor to mark
? + K + A Select from cursor to mark
? + K + G Clear mark
—————————

REF:

  1. http://www.sublimetext.com/docs/2/index.html
  2. http://docs.sublimetext.info/en/latest/index.html
  3. https://tutsplus.com/course/improve-workflow-in-sublime-text-2/

記錄下Sublime Text Mac版的快速鍵

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.