# EditRocket

## The Text Editor for Programmers

- Home
- Help Index
- Contact

# Auto Completion

EditRocket currently supports auto code completion for Java, JavaScript, JSP, Python, PL/SQL, and Ruby, auto tag lookup and completion for HTML, auto code block completion for C-style langauges such as Java, C++, C, JavaScript, PHP, etc., auto tag closure and completion for XML, and auto function signature display for PHP and C. See below for the details for each language.
EditRocket also supports function lookup for many languages, which behaves similarly to auto-complete in its execution. Function lookup can be executed using the C + L keyboard shortcut. Function Lookup is especially useful for languages for which EditRocket has code builders, such as C, JavaScript, Perl, PHP, PL/SQL, Python, Ruby, Shell Script, and Transact-SQL since EditRocket can display signature information as a tooltip for these languages.

HTML After typing an opening tag character in the HTML editor, after the auto-completion delay (which is configurable in the preferences), EditRocket will display a list of the applicable HTML tags in a selectable list. Selecting a tag inserts the tag into the editor. After typing a closing tag character for an opening HTML tag, EditRocket will automatically insert the closing tag. EditRocket also looks up tags when the first two characters of an HTML closing tag are typed.

Java and JSP: After typing a (.) in a Java or JSP program, EditRocket will try to determine whether the (.) was typed after a variable representing an Object or a Class. If EditRocket determines that the (.) followed a valid Java Object or Class, it will search the Java classpath (can be set in Coding Tools - Java - Set Classpath) to try to find any methods, consructors, and fields for the Class or Object. If found, EditRocket will display the list of constructors, fields, and methods. Clicking on a item in the display list will copy the item to the editor and display a tooltip with any signature information about the item.
For example, typing String. will bring up a list of the constructors, fields, and methods for java.lang.String. Typing String s = ""; s. will do the same.

JavaScript: 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.

Python EditRocket supports auto completion in Python when typing module_name., assuming the module was imported using an import statement, such as import sys. EditRocket can also do variable auto completion for Python if the variable is referencing a standard module. For module level auto completion, all methods, functions, and members for a module are displayed when typing module followed by a (.).
For example, assuming the import string line is included in the Python program, typing string. will display a list of all string functions, members, and methods. Selecting a value will insert the value into the editor and display a tooltip with the signature for the value if applicable.

PL/SQL EditRocket will auto complete PL/SQL system package procedures when typing a (.) in a PL/SQL program. For example, typing DBMS_OUTPUT. will bring up a list of the procedures contained in the DBMS_OUTPUT package. Selecting an item from the list will insert the item name into the editor, and display as a tooltip the signature of the procedure.

Ruby EditRocket supports auto completion for the standard and core Ruby classes. EditRocket will display all methods and functions for the class when typing the class name followed by a dot or a colon. EditRocket also provides support for variable level auto completion for Ruby if the variable is referencing a class of the standard or core library.

XML EditRocket provides auto tag close for XML tags. When typing an opening XML tag, EditRocket can automatically insert the closing XML tag in the editor. The options for auto tag closure can be configured in the preferences.

C EditRocket will automatically display a tooltip displaying function signatures for C functions in the standard library as recognized by EditRocket. After typing a function name and the start right paren, EditRocket will wait for the auto completion delay and then display the function signature if the function is recognized.

PHP EditRocket will automatically display a tooltip displaying function signatures for PHP functions in the standard PHP library. After typing a function name and the start right paren, EditRocket will wait for the auto completion delay and then display the function signature if the function is recognized.