. You need to rename it as '.sublime-completions' and store it in:
It shouldn't interfere with anything else (Snippets, etc.) but I'm not sure that it would play nice with CodeIntel(!).
How it works:
Typing, for example, 'winal' should produce the option 'Window.alert()'. Press tab or enter to accept this suggestion. It will enter 'window.alert(msg)' with the word 'window' highlighted. You can either press Tab to get to the message, or first replace 'window' with your own object reference.
You can type the first few letters of the following JS objects: Array, Body, Boolean, Date, Document, Element, Form, Function, JSON, Math, Navigator, (new), Number, Object, RegExp, Screen, String, Table, Window. (I tend to type the first Capital letter.)
But you don't have to type the object name, you could type, for example, 'seti' and it should show 'Window.setInterval()'.
BUT - if you type the full object name followed by the dot '.', then accepting a completion will not be helpful, because it may end up repeating: 'Window.window.alert()'.
Some of the completions add a comment, such as '// IE only'. If you don't want this you can just press Delete when it is highlighted. Or, of course, edit the completions file to remove it.
There are a number of things I haven't yet included. Particularly: Event, form control properties/methods, Canvas, Image. If anyone expresses an interest I will re-post when I've added these.
I welcome any comments
But, of course, if you don't find it useful you can just delete the file! Andy.
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.