- 浏览: 2048576 次
- 性别:
- 来自: NYC
文章分类
- 全部博客 (628)
- Linux (53)
- RubyOnRails (294)
- HTML (8)
- 手册指南 (5)
- Mysql (14)
- PHP (3)
- Rails 汇总 (13)
- 读书 (22)
- plugin 插件介绍与应用 (12)
- Flex (2)
- Ruby技巧 (7)
- Gem包介绍 (1)
- javascript Jquery ext prototype (21)
- IT生活 (6)
- 小工具 (4)
- PHP 部署 drupal (1)
- javascript Jquery sort plugin 插件 (2)
- iphone siri ios (1)
- Ruby On Rails (106)
- 编程概念 (1)
- Unit Test (4)
- Ruby 1.9 (24)
- rake (1)
- Postgresql (6)
- ruby (5)
- respond_to? (1)
- method_missing (1)
- git (8)
- Rspec (1)
- ios (1)
- jquery (1)
- Sinatra (1)
最新评论
-
dadadada2x:
user模型里加上 protected def email ...
流行的权限管理 gem devise的定制 -
Sev7en_jun:
shrekting 写道var pattern = /^(0| ...
强悍的ip格式 正则表达式验证 -
jiasanshou:
好文章!!!
RPM包rpmbuild SPEC文件深度说明 -
寻得乐中乐:
link_to其实就是个a标签,使用css控制,添加一个参数: ...
Rails在link_to中加参数 -
aiafei0001:
完全看不懂,不知所然.能表达清楚一点?
"$ is not defined" 的问题怎么办
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.
按住 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.
发表评论
-
Destroying a Postgres DB on Heroku
2013-04-24 10:58 887heroku pg:reset DATABASE -
VIM ctags setup ack
2012-04-17 22:13 3213reference ctags --extra=+f --e ... -
alias_method_chain方法在3.1以后的替代使用方式
2012-02-04 02:14 3237alias_method_chain() 是rails里的一个 ... -
一些快速解决的问题
2012-01-19 12:35 1433问题如下: 引用Could not open library ... -
API service 安全问题
2011-12-04 08:47 1340这是一个长期关注的课题 rest api Service的 ... -
Module方法调用好不好
2011-11-20 01:58 1297以前说,用module给class加singleton方法,和 ... -
一个ajax和rails交互的例子
2011-11-19 01:53 1856首先,这里用了一个,query信息解析的包,如下 https: ... -
Rails 返回hash给javascript
2011-11-19 01:43 2236这是一个特别的,不太正统的需求, 因为,大部分时候,ajax的 ... -
关于Rubymine
2011-11-18 23:21 2224开个帖子收集有关使用上的问题 前一段时间,看到半价就买了。想 ... -
ruby中和javascript中,动态方法的创建
2011-11-18 21:01 1191class Klass def hello(*args) ... -
Ruby面试系列六,面试继续面试
2011-11-15 05:55 1975刚才受到打击了,充分报漏了自己基础不扎实,不肯向虎炮等兄弟学习 ... -
说说sharding
2011-11-13 00:53 1432这个东西一面试就有人 ... -
rails面试碎碎念
2011-11-12 23:51 1894面试继续面试 又有问ru ... -
最通常的git push reject 和non-fast forward是因为
2011-11-12 23:29 17144git push To git@github.com:use ... -
Rails 自身的many to many关系 self has_many
2011-11-12 01:43 2675简单点的 #注意外键在person上people: id ... -
Rails 3下的 in place editor edit in place
2011-11-12 01:20 910第一个版本 http://code.google.com/p ... -
Heroku 的诡异问题集合
2011-11-11 07:22 1655开个Post记录,在用heroku过程中的一些诡异问题和要注意 ... -
SCSS 和 SASS 和 HAML 和CoffeeScript
2011-11-07 07:52 12898Asset Pipeline 提供了内建 ... -
Invalid gemspec because of the date format in specification
2011-11-07 02:14 2068又是这个date format的错误。 上次出错忘了,记录下 ... -
ruby面试系列五,面试题及其他
2011-11-05 21:18 7354周六早晨,因为早了所 ...
相关推荐
TextMate
Textmate 图标美化文件 textmate.icns覆盖/Applications/TextMate.app/Contents/Resources中同名文件
被成为mac上最牛的编辑器,textmate的教程,好多的快捷键和使用介绍,一定很有用的
textmate, TextMate是 OS X 10.9 +的图形化文本编辑器 TextMate下载你可以从这里下载TextMate下载。反馈你可以使用的TextMate邮件列表或者 #textmate IRC频道在 freenode.net 中,用于问题。评论和 Bug 报告。你也...
可以媲美TextMate的编辑器,很强大的说
如何在不注册的情况下持久使用TextMate
当然,您可以在 IDEA / RubyMine / PyCharm 中轻松更改键盘映射……但是您想学习默认的 Intellij 快捷键,就像您在 TextMate 中学习 TextMate 快捷键和在 Eclipse 中学习 Eclipse 快捷键一样。 这个插件与 ctrl+...
Mac下赫赫有名的TextMate编辑器,2.0beta版,官方下载通道貌似是通过亚马逊云分发,国内网络环境你懂得,所以不太方便下载,特上传给大家分享。
使用TextMate的简单方法添加多个插入点,一次即可进行多个更改,交换代码段以及许多其他操作。 选择要搜索的内容,要搜索的内容,TextMate将以易于在匹配之间跳转,提取匹配文本或预览所需替换内容的方式显示结果。...
alpha 版的 textmate. 很强大的哦。Mac 用户的福音。
Notepad++使用TextMate的主题
Editplus 的 Textmate 主题 Editplus_with_Textmate_Theme 包含三个文件 editplus.inf editplus_u.ini setting_u.ini
textmate2 开元后编译的版本,可以跟着升级。。别的就不说了
TextMate 风格语法高亮类库(基于 Swift 2.0).zip,TextMate-style syntax highlighting
eclipse也可以和textmate一样美
Mac 下非常不错的文本编辑器 1.5.11 稳定版 已破解
自己编译的TextMate源代码。能用,网络权限问题,没有支持很多语言。
MACOSX下知名文本编辑器的源码,textmate
textmate.jar