TextMate 列编辑模式

按住 Alt 键,用鼠标选择要插入字符的行。如果仅仅是插入字符,注意选择 0 列 - 选择多列的话会把它们覆盖掉。选择完毕应该是看到一条细细的竖线,然后输入要插入的字符。TextMate 会实时显示所有的更改,很直观,这是 TextMate 比 VIM 好的地方。

如果只是在许多行前插入空格,则可以选中这些行,使用快捷键 Cmd+] 增加缩进,在 TextMate 下方 Tab Size 及是否使用 "Soft Tabs"(用空格取代 Tab).

cmd + option + L    显示行号 
cmd + F            页面搜索文字 
cmd + shift + F        项目搜索文字 
cmd + G            下一个搜索文字 
cmd + shift + G    上一个搜索文字 
cmd + option + F    替换一个 
cmd + ctrl + F        全部替换 
cmd + S            保存 
cmd + option + S    全部保存    
cmd + shift + S        另存为。。。。 
cmd + shift + ->        选中光标右面的内容 
cmd + shift + <-        选中光标左面的内容 
cmd + shift + L        选取一行信息 
cmd + L             定位到某一行 
cmd + option + ->    textmate项目中右面的标签 
cmd + option + <-    textmate项目中左面的标签 
cmd + 数字        选择某个标签 
cmd + ->            光标回到行尾 
cmd + <-            光标回到行首 
cmd + ^            光标回到页首 
cmd + 下箭头        光标回到页尾 
cmd + /                注释一行 
cmd + z            返回前一个内容 
cmd + ]                增加缩进 
cmd + [                减少缩进 
cmd + T            打开项目下的文件 
cmd + O            打开项目 
cmd + N            新建文件 
cmd + W                 关闭标签 
cmd + X            剪切 
cmd + C            复制 
cmd + V            粘帖 
cmd + M            最小法 
cmd + F2            标记 
cmd + shift + z        返回后一个内容 
cmd + option + [        格式化代码 
cmd + shift + T        当前文件中所有方法的 
cmd + shift + W    关闭项目 
cmd + option + L      显示行号 
cmd + alt + [       代码格式化 
cmd + shift + t 当前文件中所有的方法导航

ctrl + A                    光标回到行首 
ctrl + E                    光标回到行尾 
ctrl + L                    自动生成 => 
ctrl + w                    选取一个单词 
ctrl + tab                    在菜单栏和页面切换 
ctrl + 上箭头                向上移动下拉菜单 
ctrl + 下箭头                向下移动下拉菜单 
ctrl + cmd + 上箭头    向上移动整行 
ctrl + cmd + 下箭头    向下移动整行 
ctrl + shift + k 删除一行代码 
ctrl + shift + >  (erb模板) 一键<%= %>,连续按会出现多种效果 
ctrl + option + cmd + V    从历史中选择内容粘帖

option|ctrl + ->            光标向右移动一个单词 
option|ctrl + <-            光标向左移动一个单词 
option|ctrl + shift + >   选中光标右面的单词 
option|ctrl + shift + <   选中光标左面的单词

F2                        在标记间切换 
tab     输入def按tab它会自动补全end 
esc     以该文件中已经出现过的词做自动补全,可以按多次esc切换单词

view: 
F1                            Fold current block 
cmd+t                       open file in a new tab 
cmd+w                     close current tab/window 
opt+cmd+left/right   move to left/right tab (和firefox一样!) 
tab / ^tab                 在左边文件夹侧栏与右边编辑窗口间切换

selection: 
^w                            select current word 
shift^l                       select current line (of course, use shift^left/right to select until head/end of line)

edit: 
cmd+return              Move to the end of line and insert a newline    
shift+cmd+return     Move to the end of line, insert a ; and then insert a newline 
^k                             Kill until end of line (^y Yank it back!) 
shift^k                      Kill the whole line   (^y Yank it back!) 
cmd+backspace      delete until head of line 
cmd+delete             delete until end of line 
shift^d                      duplicate current line 
cmd] /cmd[               indent / indent back 
cmd /                        toggle comment

input: 
shift^>                     <%= %> (再按一下变成 <% %>, 再按一下试试,再按一下呢?) 
^l                             =>

[url=http://lfx-cool.iteye.com/blog/436468]本站的另个Textmate快捷键[/url]

Ctrl+D 删除光标右侧的一个字符 
    Ctrl+T 调换选中文本的顺序,如果没有选择任何文本则对换光标左右字符的位置。并且将光标置于下一个位置 
    Ctrl+K 删除光标到行尾的文字 
    Ctrl+Y 复制出删除的最后一次文本 
    Ctrl+O 不移动光标插入新的一行

当然这些快捷键在Mac系统中的其它应用中也可以使用,比如Mail。

那个传说中的小抄列表

Some useful TextMate shortcutsGeneral: 
+ make font bigger 
- make font smaller 
T insert special characters 
T open "Select Bundle Item" dialog 
T show TODOs, FIXMEs, CHANGEDs 
A open subversion dialog 
R select currently open file in project drawer

Editing: 
L go to line number (opens dialog) 
→ jump to next right word 
T go to symbol (opens dialog) 
F2 Add/remove bookmark 
F2 go to next bookmark 
F2 go to previous bookmark 
W select current word 
L select current line 
/ comment / uncomment selection 
↑ move selection up (also works down/left/right) 
indent selection (add for opposite direction) 
V paste previous entry from clipboard history 
V paste from history (opens dialog) 
V paste selection online (opens dialog) 
add empty line below current (and go to it) 
add empty line below current (with line terminator) 
& open HTML entity and escape tool dialog 
L wrap selection as link (URL from clipboard) 
N show count (lines,words,bytes) of selection 
lorem add some (lorem ipsum) text

Projects: 
N new project 
S save project 
D show / hide project drawer 
toggle focus (drawer, buttons, editing) 
T open "Go to File" dialog 
1-9 open tab number 1-9 
→ go to next tab on the right 
← go to next tab on the left 
↑ switch between same name files (x.c & x.h)

Project Drawer: 
open selected file 
SPACE rename selected file 
→ expand selected folder 
← collapse selected folder

T go to symbol 
T go to file 
like the shift + return in eclipse 
five star !! 
V show the stuff that you have clipped before 
V to paste the previous clip in the list 
V To go back you can use 
V use this to do a not re-indented insertion 
O to open the overwrite mode(instead of inserting mode) 
in finding and replacing multiple lines 
If you need to insert a newline or tab character into either of the text fields, you can hold down option () while pressing the tab () or return () key. This will insert a literal tab or newline character. 
E copy the thing you want to find in the public shared clipboard 
G find the next occurrence of the string you want to find 
F perform the find and replace operation 
shift + alt + arrow keys : select by paragraphs or words 
shift + arrow keys: select by characters or by lines 
shift + cmd + arrow keys: select by the remaining part of the direction you give 
[ and ]   change indent of text 
+ arrow keys: move a line/block up/down a few lines 
super combination: shift+cmd+l shift + arrow keys + ctrl + cmd + arrow keys 
select + A : add sth to end of each selected lines 
and making the selection with the mouse 
or simply make the regular selection and then press alt 
the difference between hard tab and soft tab 
Validate Syntax (V) 
Wrap in Something (W) 
Preview Document (P) : the web preview 
Comment Toggle (/) 
quick open bundle list ctrl + Esc 
opendiff 
K — delete the current line. 
Document Statistics (N) 
        Sort Lines in Document / Selection (F5) — this will sort the lines or 
        selection alphabetically.

转载于:https://blog.51cto.com/zorro/1596989

TextMate快捷键相关推荐

  1. textmate快捷键 汇总

    TextMate 列编辑模式 按住 Alt 键,用鼠标选择要插入字符的行.如果仅仅是插入字符,注意选择 0 列 - 选择多列的话会把它们覆盖掉.选择完毕应该是看到一条细细的竖线,然后输入要插入的字符. ...

  2. TextMate 通用快捷键

    原来一直在Windows上使用notepad++文本编辑器,现在换了MAC,发现notepad++ 官方没有MAC版本的,在MAC上使用也有办法,只不过实在是太麻烦了. 通过查看网友的建议,发现了Te ...

  3. TextMate 编辑 HTML 使用的快捷键记录

    本篇是介绍来自于 HTML Bundle 的快捷键 1. 产生 HTML 注释 <!-- -->,用 command+/,这与多数 IDE    产生注释的方式是一样的.而要产生多行的注释 ...

  4. textmate常用快捷键备忘

    视图切换 Ctrl + Cmd + F # 切换全屏 Option + Cmd + Tab # 显示/隐藏左边文件导航树 Cmd + Option + W # 切换代码折行 Cmd + Option ...

  5. TextMate常见快捷键

    cmd + option + L 显示行号 cmd + F 页面搜索文字 cmd + shift + F 项目搜索文字 cmd + G 下一个搜索文字 cmd + shift + G 上一个搜索文字 ...

  6. 为TextMate扩展全屏功能

    今天看代码,感觉TextMate那个窗口太小了点,越看越不爽,就想把它弄成全屏的.于是搜索啊搜索啊搜索,终于让我找到一款很yd的小软件,叫megazoomer, 下载地址是: [url]http:// ...

  7. textmate开发一个blog

    TextMate开发一个简单的Blog吧. 1.首先安装git,下载源码编译或者到这里下载package:[url]http://metastatic.org/text/Concern/2007/09 ...

  8. textmate bundle for jquery

    使用这个bundle的例子: 键入ready然后按tab就会生成下面的代码: $(document).ready(function() { }); 其中第二行被选中,这时在里面编写jquery代码即可 ...

  9. vim 删除当前词_键盘快捷键 - 在VIM中的光标之后或周围删除单词

    键盘快捷键 - 在VIM中的光标之后或周围删除单词 我现在从TextMate切换到VIM. 我发现插入模式下的^ + W非常有用. 但是,我不仅要删除光标前的单词,还要删除光标后面或周围的单词. 我做 ...

最新文章

  1. 多地给毕业生发补贴!有的高达6000元/人
  2. 三端可调稳压集成电路LM317的多种应用电路
  3. Office 365用户现可分享含有效期的OneDrive文件链接
  4. java新建常量_【Java】常量 - 每日坚果的个人空间 - OSCHINA - 中文开源技术交流社区...
  5. web学习笔记1--HTML
  6. python程序如何做界面_如何用Python给已有小程序做界面?
  7. OpenShift 4 - 安装3Scale API Management环境
  8. 特斯拉退市,是一个工程师的执拗
  9. 宝塔Linux 8888 进不去
  10. 使用frp通过ssh访问公司内网机器
  11. Linux: 多线程
  12. 华为S5720s交换机console口配置
  13. FTP工具,5款常用的FTP工具
  14. Spring Boot/Spring Cloud 集成Page Office支持word、excel、ppt在线浏览编辑
  15. 两台手机通过4g网络直接通讯_手机直播只准备了一部手机?难怪直播效果不好!...
  16. scratch项目学习计划
  17. linux nfs 拒绝挂载,mount:被服务器拒绝的nfs访问
  18. RepLKNet代码解读(31大小的卷积核)
  19. Windows10 1903 输入法美式键盘设置
  20. 微软 Win11 22H2 (KB5017321) 更新失败并显示下载错误 0x800F0806,修复方法来了

热门文章

  1. 安森美半导体强化汽车战略,倾力服务中国汽车市场
  2. 9.多态(P a1=new B();)重写与重载、instanceof关键字
  3. vsftpd配置教程
  4. B.机器学习实战系列[一]:工业蒸汽量预测(最新版本下篇)重点讲解模型验证、特征优化、模型融合等
  5. 课题申报书范文_课题科研项目申请书范文
  6. PictureBox 查看原图
  7. 浅析OA办公系统未来的发展路径
  8. 年终奖太少?小灰送书给大家!
  9. 推动社会可持续发展 华云数据荣获“最具社会责任企业”奖
  10. Spring和Redis整合详解