- [*註] Esc - hitting escape after you typed couple of letters will do code completion from the symbols defined in current editing file. Will work as well for native PHP functions. Just start typing mk and hit escape then and it will complete it as mktime :)
- Alt + Esc - this will give you list of possible completions. After selecting one of them, you’ll get full function signature injected in the document.
- Ctrl + H - will give you PHP documentation related to the selected word in your current editing document.
- Ctrl + Shift + V - will check your file for syntax validity.
- Shift + Cmd + D - will jump to file that is included in the current PHP file.
- doc -> Tab - if you type word doc above class/method/function and hit Tab after it, you will get documentation block for the related entity.
- Cmd + Shift + R - will run your file with current system PHP executable. This is very nice when you just test something and want to see the output, but don’t want to get out to shell and command line.
- Alt + F1 - documentation about function signature in the form of tooltip. If you forgot weather $haystack or $needle goes first as the param in the array function this is easy way not to search through extensive documentation.
- Shift + Ctrl + T - if you like to place lot of TODO, FIXME or CHANGED meta information in your comments for later addressing, this will help you find them quickly and navigate through them easily.
這些功能與快捷鍵熟悉之後,發現真的非常好用!難怪有人問說在Mac上面開發需要用什麼IDE時,強者都回應:You don't need a IDE on Mac, you only need a good editor, like TextMate. XD
(註:來源出處 http://ivanjovanovic.com/2010/12/29/textmate-for-php-development/)

0 意見:
張貼留言