k

JavaScript Auto Completion

After typing a (.) in a JavaScript program, EditRocket will try to determine whether the (.) was typed after a variable representing a JavaScript object or DOM object. EditRocket will then display a list of methods for that object. Selecting a method from the list will copy the method name to the editor and display a tooltip with the method signature.

For example, typing document. will bring up a list of all of the methods in the DOM document object. Typing var s = new String("hello"); s. will bring up a list of all of the methods in the String object.

EditRocket also provides JavaScript auto completion if editing an HTML file so long as the cursor is inside a script block, for example <script>.

Whether or not to do JavaScript auto completion and how long to delay before showing method information if auto complete is turned on can be configured in the preferences window on the Auto Complete tab.