码迷,mamicode.com
首页 > 系统相关 > 详细

记录下Sublime Text Mac版的快捷键

时间:2014-11-29 17:18:09      阅读:392      评论:0      收藏:0      [点我收藏+]

标签:style   http   io   ar   os   使用   sp   for   on   

  • 推荐使用最新版本的Chrome/Safari或者Firefox浏览器浏览此页,否则Mac按键可能无法正常展示
  • The Latest Version of Chrome/Safari or Firefox is Recommeded.
KeypressCommand
? + 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
—————————
KeypressCommand
? + 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

KeypressCommand
? + ? + 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

KeypressCommand
? + 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

KeypressCommand
? + 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

KeypressCommand
? + ? + ↑ 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

KeypressCommand
? + ? + t Open last closed tab
? + ? + ← Cycle up through tabs
? + ? + ? Cycle down through tabs
—————————

Split window

KeypressCommand
? + ? + 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

KeypressCommand
? + F2 Toggle bookmark
F2 Next bookmark
? + F2 Previous bookmark
? + ? + F2 Clear bookmarks
—————————

Text manipulation

KeypressCommand
? + K, ? + U Transform to Uppercase
? + K, ? + L Transform to Lowercase
F5 Sort lines
? + F5 Sort lines(case sensitive)
? + ? + T Special characters
—————————

XML/HTML

KeypressCommand
? + ? + A Select content into tag
? + ? + . Close tag
? + ? + W Wrap the selected text in the HTML tag
—————————

Marks

KeypressCommand
? + 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版的快捷键

标签:style   http   io   ar   os   使用   sp   for   on   

原文地址:http://www.cnblogs.com/murongxiaopifu/p/4131091.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!