记录下Sublime Text Mac版的快捷键

  • 推荐使用最新版本的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/
时间: 2024-10-05 04:09:22

记录下Sublime Text Mac版的快捷键的相关文章

记录下sublime text快捷方式

不得不说sublime text用过之后,爱不释手,这里收集一下常用的快捷方式: ctrl+shift+p:调出命令面板,在输入ss可以改变当前的代码的渲染和提示效果, 用起sublime text 必不可少的是为起安装插件包,输入install package选择你想安装的包,内网环境的话,就只能找其他人要包,然后解压到Packages目录下勒 ctrl+/:注释,这个跟eclipse里面是一样的, ctrl+shift+[:折叠代码, ctrl+shift+]:展开折叠代码, 在页面代码过长

转:Mac OS X下Sublime Text (V2.0.1)破解

Mac OS X下Sublime Text (V2.0.1)破解 Mac OS X下Sublime Text (V2.0.1)破解 (2013-03-07 14:02:54) 转载▼     正版的买个license其实并不贵,定价为70美元.如果不买license,也可access所有功能,只是偶有pop-up提示购买.有能力的请支持正版! 以下是step-by-step instructions: 1. 在http://www.sublimetext.com/上根据操作系统选择对应版本下载,

Mac下sublime text 的“package control”安装

小伙伴们好,我根据昨晚的经历写一个小总结:关于“Mac下sublime text 的“package control”安装”.本来安装package control是一个无比简单的事情,即使是初次使用sublime text的小伙伴也可以在百度轻易地找到安装方法. 可是吧,伟大的天朝竟然把package control给强了墙了!!昨天狠心买的mbp到货, 回家热情满满的想安装ST,就遇到了这个问题.很纠结,很难过,感觉整个编程生涯都无比的灰暗(开玩笑).下面把自己一晚上找到的方法总结一下哈.另

完美解决 Linux 下 Sublime Text 中文输入

首先,我参考了好几篇文章,都是蛮不错的,先列出来: sublime-text-imfix:首先推荐这个方法,最简单,但是在我的系统上有些问题.可用这个的强烈推荐用这个 完美解决 Linux 下 Sublime Text 中文输入:讲的比较明白,也可用参考. Ubuntu下Sublime Text 3解决无法输入中文的方法: 讲解的最清楚了,建议看看. 测试系统:Ubuntu 14.04 (理论上所有 Linux 发行版都通用) 输入法:Fcitx 4.2.6.1 Sublime Text 版本:

【转】解决Ubuntu下Sublime Text 3无法输入中文

前言 sublime很好用,但是ubuntu下不能输入中文,这是一个很大的问题.不知道为什么开发着一直也不解决,好在还是有高手在,总能找到方法.网上方法很多,但是也很乱,现在我将自己的经验总结一下. 首先,我参考了好几篇文章,都是蛮不错的,先列出来: sublime-text-imfix:首先推荐这个方法,最简单,但是在我的系统上有些问题.可用这个的强烈推荐用这个 完美解决 Linux 下 Sublime Text 中文输入:讲的比较明白,也可用参考. Ubuntu下Sublime Text 3

解决Ubuntu下Sublime Text 3无法输入中文

前言 sublime非常好用,可是ubuntu下不能输入中文,这是一个非常大的问题.不知道为什么开发着一直也不解决,好在还是有高手在.总能找到方法. 网上方法非常多,可是也非常乱,如今我将自己的经验总结一下. 首先,我參考了好几篇文章.都是蛮不错的.先列出来: sublime-text-imfix:首先推荐这种方法.最简单.可是在我的系统上有些问题. 可用这个的强烈推荐用这个 完美解决 Linux 下 Sublime Text 中文输入:讲的比較明确.也可用參考. Ubuntu下Sublime

ubuntu 13.04下sublime text 3使用中文输入法

主要思路参考 http://blog.yanwen.org/archives/1955.html libsublime-imfix.so 这个库自己编译和从他这下载的 md5一样.可以不用编译了.直接下载. 但是有几点需要改动 1.有人提出来了 desktop文件里的一句: Exec=bash -c 'LD_PRELOAD=/opt/sublime_text/libsublime-imfix.so /opt/sublime_text/sublime_text' %F 要改成: Exec=bash

Mac OS X下Sublime Text (V2.0.1)破解

转自:http://blog.sina.com.cn/s/blog_559d66460101cab0.html 1. 在http://www.sublimetext.com/上根据操作系统选择对应版本下载,进行安装.此时版本为2.0.1,Mac OS X版的话要求10.6以上系统. 2. 安装完成后,在application下找到Sublime Text,右键选择显示contents,然后根据此路径 Sublime Text 2/Contents/MacOS/,在MacOS文件夹中找到名为Sub

Mac OSX下Sublime Text配置使用Ctags实现代码跳转

1. 先用brew工具安装ctags,安装路径在/user/local/bin The default ctags executable in OSX does not support recursive directory search (i.e. ctags -R). To get a proper copy of ctags, use one of the following options: Using Homebrew: brew install ctags Using MacPort