Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using TextMate (mac), I was told that this app can autocomplete jQuery methods or functions by pressing the esc key.

I have the script tag like this:

<script type="text/javascript">
$("document").ready(function() {
    $("div")...
});
</script>

When I tried to finish $("div"). with something (for example toggleClass), when I type $("div").to then press the esc key. Nothing shows up!

Do I have to install some kind of plugin in order to make it work, or is there any other editor app that you would recommend?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

the answer to the question is yes.

textmate autocomplete can only ac from the words within the document or methods predefined to the language you are working on. say in php, when you type in_ and press esc, you start to see the native php methods.

https://github.com/kswedberg/jquery-tmbundle this is a popular jquery bundle for textmate, it does not work the way to want but it's useful.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.