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条回答
叼着烟拽天下
2楼-- · 2019-03-07 11:00

in the cftextmate bundle you can type any cfml tag without the opening "<" or closing ">" and press tab and it completes the entire tag and you can then tab to each of the tag attributes. i'm not sure if this type of shortcut works for other languages.

查看更多
\"骚年 ilove
3楼-- · 2019-03-07 11:01

shift+ctrl+alt+v sends selected text to pastie.org

also, using the PHP Bundle, try to start writing a function name and do the following:

str + alt + F3 = list of available functions

str + alt + F1 = short description of the function you've just completed.

查看更多
SAY GOODBYE
4楼-- · 2019-03-07 11:02

You can get a really great desktop background here. It has a ton of really useful keyboard shortcuts. I used it for a couple of days before memorizing the most useful ones.

查看更多
The star\"
5楼-- · 2019-03-07 11:03

Delete the current line: CONTROL + SHIFT + K

查看更多
放我归山
6楼-- · 2019-03-07 11:03

Wrap selected text in markup tags: SHIFT + CONTROL + W

For example, if you have:

Lorem ipsum dolor sit amet, consectetur

Highlight the text and press SHIFT + CONTROL + W to create:

<p>Lorem ipsum dolor sit amet, consectetur</p>
查看更多
做个烂人
7楼-- · 2019-03-07 11:04

Look up property specifications in W3C: CONTROL + H

This works for both HTML and CSS. Place your carrot over whatever property you'd like to look up and press CONTROL + h. This will open a new window listing the W3C info.

For example, place your carrot over background:

body {
  background: red;
}

Hit command + h and you'll see something like:

alt text

查看更多
登录 后发表回答