Chinaunix首页 | 论坛 | 博客
  • 博客访问: 150121
  • 博文数量: 24
  • 博客积分: 455
  • 博客等级: 下士
  • 技术积分: 309
  • 用 户 组: 普通用户
  • 注册时间: 2010-10-22 09:43
文章分类

全部博文(24)

文章存档

2013年(7)

2012年(5)

2011年(11)

2010年(1)

我的朋友

分类: LINUX

2012-11-05 16:37:11

From 
Sublime Text 2是个Linux下好用的代码编辑器,优势是速度超级快,字体和theme比较美观,同时支持Win、Linux和OSX平台,并且有强大的外挂系统支持功能扩展。

快捷键补充:
Alt+o : 打开当前.c文件的对应的.h头文件,或者反过来打开当前.h对应的.c文件。

与Ctags相关的快捷键:
CommandKey BindingAlt BindingMouse Binding
rebuild_ctagsctrl+t ctrl+r
navigate_to_definitionctrl+t ctrl+tctrl+>ctrl+shift+left_click
jump_backctrl+t ctrl+bctrl+<ctrl+shift+right_click
jump_back to_last_modificationctrl+t ctrl+m
show_symbolsalt+s
show_symbols multialt+shift+s
show_symbols suffixctrl+alt+shift+s

⇧ 是shift键
↩ 是回车键↑是方向键的up键⌫是backspace删除键
Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C

copy current line (if no selection)

Ctrl+X

cut current line (if no selection)

Ctrl+⇧+K

delete line 删除光标所在行

Ctrl+↩

insert line after 在光标所在行之后插入新行

Ctrl+⇧+↩

insert line before 在光标所在行之前插入新行

Ctrl+⇧+↑

move line (or selection) up 与光标所在行的前一行互换

Ctrl+L

select line (repeat to select next lines) 选择整行(按住继续选择下一行)

Ctrl+D

select word (repeat select others occurrences in context for multiple editing)

Ctrl+M

jump to closing bracket for current code, repeat to jump to opening bracket

Ctrl+⇧+M

select all contents of the current brackets (curly brackets, square brackets, parentheses)

Ctrl+KK

delete from cursor to end of line 从光标处删除至行尾 

Ctrl+K+⌫

delete from cursor to start of line 从光标处删除至行首

Ctrl+]

indent current line(s) 增加缩进

Ctrl+[

un-indent current line(s) 减少缩进

Ctrl+⇧+]

折叠代码

Ctrl+⇧+[

 展开代码

Ctrl+⇧+D

duplicate line(s) 复制(多)行

Ctrl+J

join line below to the end of the current line 合并选择的多行为一行

Ctrl+ /

comment/un-comment current line 注释/取消注释单行

Ctrl+⇧+/

block comment current selection 注释/取消注释多行、代码块

Ctrl+Y

redo, or repeat last keyboard shortcut command

Ctrl+⇧+V

paste and indent correctly

Ctrl+Space

select next auto-complete suggestion

Ctrl+U

soft undo (somehow undoes your movements; it jumps to your last change before undoing it when you repeat this command)

Navigation/Goto Anywhere
Ctrl+Pquick-open files by name in your project (doesn’t seem to need an actual project set up, it just searches in the directories around the currently-opened file
Ctrl+Rgoto symbol (functions and classes) in the file. Same as Ctrl+P, then type @
Ctrl+;goto word in current file. Same as Ctrl+P, then type #
Ctrl+Ggoto line in current file. Same as Ctrl+P, then type :
General
Ctrl+⇧+Pcommand prompt
Ctrl+KBtoggle side bar
Find/Replace
Ctrl+Ffind
Ctrl+Hreplace
Ctrl+⇧+Ffind in files
Tabs
Ctrl+⇧+topen last closed tab (just like in your browser)
Ctrl+PgDncycle down through open tabs, cycle up with Ctrl+PgUp
Ctrl+⇆cycle through last tabs (repeat to go back further in history)
Split window
Alt+⇧+2split into two columns
Alt+⇧+1revert to single column
Alt+⇧+5grid (4 groups)
Ctrl+[1,2,3,4]jump to “group” (pane)
Ctrl+⇧+[1,2,3,4]move file to specified group
Bookmarks
Ctrl+F2toggle bookmark
F2next bookmark
⇧+F2previous bookmark
Ctrl+⇧+F2clear bookmarks
Text manipulation
Ctrl+KUupper case
Ctrl+KLlower case
阅读(1866) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~