How do I do auto-completion with TextMate? just a simple tab?

On Mon, Apr 25, 2011 at 3:37 AM, Mark Jackson <mrcodewizard@gmail.com> wrote:
On Apr 23, 2011, at 8:40 PM, Rodrigo Ruiz wrote:

> Why is that?

With a Text Editor you are forced to type in everything. Some editors (like BBEdit) are similar to IDEs and will popup suggestions; I think they make it more difficult to actually learn the language. With TM, you don't have the auto-popup (you can pull up suggestions, but you have to manually trigger them). Later you can start using the tab triggers and the manual (⌃+⌘+T) selection to save time adding code you already understand.

>
> And does TextMate shows typing mistakes? like forgetting a ";" or typing something like Systtem.out.pritnln()?

No. Unlike Eclipse, it does not do that. You can however edit the bundle and make it do that, I just don't see much use in that (it's a big job) as the debugger will pick it up, anyway. This is one of the reasons that Text Editors have a smaller footprint and are faster than IDEs.

If you have your tab triggers set up correctly, you will not have this problem often. As an example I have set up ⇧-⌘-⏎ to add a new line and terminus specific to the language (e.g ; in PERL). I make it a habit to terminate ALL lines even if it's redundant. Some IDEs do this for you, I think it's a bad habit to get into. Which takes us back to a text editor IMO being a better way to learn.

_______________________________________________
textmate mailing list
textmate@lists.macromates.com
http://lists.macromates.com/listinfo/textmate