sublime-text-2 快捷键和自定义配置

快捷键

Editing

KeypressCommand

 

Ctrl + ↩ Insert line after

Ctrl + ⇧ + ↩ Insert line before

Ctrl + J Join line below to the end of the current line 

 

Ctrl + ⇧ + ↑ Move line/selection up

Ctrl + ⇧ + ↓ Move line/selection down

Ctrl + ⇧ + D Duplicate line(s)

Ctrl + ⇧ + K Delete line(s)

 

Ctrl + L Select line - Repeat to select next lines

Ctrl + D Select word - Repeat select others occurrences

Ctrl + M Jump to closing parentheses Repeat to jump to opening parentheses

Ctrl + ⇧ + M Select all contents of the current 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 + / 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

Alt + / auto_complete

Ctrl + U soft undo; jumps to your last change before undoing change when repeated

 

Navigation/Goto Anywhere

KeypressCommand

Ctrl + P Quick-open files by name

Ctrl + R Goto symbol

Ctrl + ; Goto word in current file

Ctrl + G Goto line in current file

 

General

KeypressCommand

Ctrl + ⇧ + P Command prompt

Ctrl + KB Toggle side bar

Ctrl + ⇧ + Alt + P Show scope in status bar

 

Find/Replace

KeypressCommand

Ctrl + F Find

Ctrl + H Replace

Ctrl + ⇧ + F Find in files

 

Tabs

KeypressCommand

Ctrl + ⇧ + t Open last closed tab

Ctrl + PgUp Cycle up through tabs

Ctrl + PgDn Cycle down through tabs

Ctrl + ⇆ Find in files

Alt + [NUM] Switch to tab number [NUM] where [NUM] <= number of tabs

 

Split window

KeypressCommand

Alt + ⇧ + 2 Split view into two columns

Alt + ⇧ + 1 Revert view to single column

Alt + ⇧ + 5 Set view to grid (4 groups)

Ctrl + [NUM] Jump to group where num is 1-4

Ctrl + ⇧ + [NUM] Move file to specified group where num is 1-4

 

Bookmarks

KeypressCommand

Ctrl + F2 Toggle bookmark

F2 Next bookmark

⇧ + F2 Previous bookmark

Ctrl + ⇧ + F2 Clear bookmarks

 

Text manipulation

KeypressCommand

Ctrl + KU Transform to Uppercase

Ctrl + KL Transform to Lowercase

 

自定义配置

/home/hanl/.config/sublime-text-2/Packages/User/Preferences.sublime-settings

{

"font_size": 11

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值