Sublime Text 2 实用技巧越用越喜欢
曾一度觉得支持插件的功能强大nodepad++已经足够好了,但当被极力推荐试了试Sublime一段时间后,我也开始极力推荐其他朋友试试Sublime。 我确定你也会喜欢上她。 nodepad++是中规中矩的强大,朴实但毫无新意。 Sublime是绚丽的强大,不同凡响,够性感
跳转到指定行 快捷键:CTRL + g 或者 CTRL + p 后输入:
快速跳转到文件中的某个函数处 快捷键:CTRL + r 或者 CTRL + p 后输入@
在当前文件中快速搜索内容 快捷键:CTRL + p 后输入 #
** 在指定目录下所有文件中搜索内容** 快捷键:CTRL + SHIFT + f
选择区间内容 将光标放在括号中间任意位置,按快捷键:CTRL + SHIFT + m,这种选取方式支持 { } ( ) 等符号。
文本选择 当光标在一个单词上时,按下快捷键:CTRL + d,就会选中该块字符,同时文件中存在的相同字符都有提示。
快速注释和取消注释 行内注释快捷键 CTRL + /,块注释则选择一个区间,快捷键 CTRL + SHIFT + / 取消注释不论行注释还是块注释,快捷键都是 CTRL + /,只需要鼠标光标在注释区间内即可。
在当前项目中快速搜索文件
快捷键:CTRL + p
只需在窗口输入:rum 或者r/u/m 看结果

- Selection
As a web developer, we would frequently do code editing. Below are some handy keyboard shortcuts that allow you do different types of selections in SublimeText.
Command + D Select a word.
Command + L Select a line.
Command + A Select the entire content within the document.
Ctrl + Command + M Select anything inside the bracket (which is useful when working with CSS or JavaScript)
Command + D Hit this key to quickly select the next code, line, or word that has the same instances as you are currently selecting.
... ...
http://www.hongkiat.com/blog/sublime-text-tips/ http://www.csser.com/board/4f59c2cb9c3694f227001cd7