What are some useful TextMate shortcuts? [closed]

2019-03-07 10:38发布

Macs are renowned (or bemoaned) for having an extensive number of shortcuts. However, OS X itself pales in comparison to the shortcut lists in TextMate and its bundles.

What are some useful keyboard shortcuts you use?

30条回答
Root(大扎)
2楼-- · 2019-03-07 11:05

Wrap each selected line in markup tags: SHIFT + CONTROL + COMMAND + W

For example, if you have:

  This is a 
  few sample
  list items 

Highlight all three lines and presss SHIFT + CONTROL + COMMAND + W to create:

  <li>This is a </li>
  <li>few sample</li>
  <li>list items</li>
查看更多
倾城 Initia
3楼-- · 2019-03-07 11:05

I just found a list of shortcut key symbols w/ definitions under Bundles > HTML > Entities - helpful for me in figuring out the whole short-cut bonanza going on with TextMate.

查看更多
来,给爷笑一个
4楼-- · 2019-03-07 11:06
  • ctrl+shift+K deletes current line
  • ctrl+shift+J merges current line with the next line
查看更多
等我变得足够好
5楼-- · 2019-03-07 11:06

Go to File: + T

Find in Project: + SHIFT + F

查看更多
三岁会撩人
6楼-- · 2019-03-07 11:08

Close the nearest open html/xml tag: OPTION + COMMAND + PERIOD

For example, if you have:

<div>Lorem ipsum dolor sit amet, consectetur

CONTROL + COMMAND + D will automatically add the closing </div> tag to create:

<div>Lorem ipsum dolor sit amet, consectetur</div>
查看更多
走好不送
7楼-- · 2019-03-07 11:09

Selecting text using alt (via click and drag)

then use + ] to indent (or [ to dedent)

查看更多
登录 后发表回答