Code Completion: Infotips, Advanced Context Sensitive Tagging
Infotips is an enhancement to CRTAGS, the tagging facility. When typing in data variable references or function names, CRiSP will popup a selection menu or tooltip showing the prototype of the function being called or the list of valid structure members depending on the data type.
When writing code, you can use Javadoc or plain English comments in the function header and CRiSP will automatically format and show the text in the popup help.
CRiSP’s code completion currently works for C, C++, Java, ColdFusion, HTML, Perl, SQL, TCL, VHDL, Xbase, PHP, JSP, VBScript, Python, CFScript and C#.
Specific features in Infotips include:
- Auto Parameter Info
Automatically displays the prototype for a function when a function operator [ ‘(‘ for most languages] is typed and highlights the current argument within the displayed prototype. Javadoc comments are displayed in a mini-HTML viewer.
- Auto List Arguments
Enhanced to automatically list compatible arguments when filling in the argument to a function or method. Javadoc comments are displayed in a mini-HTML viewer.
- Auto List Members
Automatically lists members when you type a member access operator (‘.’ for C++/Java, or ‘->’ for C/C++). When you type the member access operator, CRiSP will analyze the context in order to list the members and inherited members of the current object.
- Context Tag Navigation
Source code context is automatically analyzed so you can quickly navigate to the definition of an identifier, including local and global variables, class members and functions.
- Context Tag Preview
A dockable symbol output window utilizes context information to preview the definition of the identifier currently under the cursor.
A table-of-contents style window within the edit area allows you to immediately see bookmarks, links, or sections in a tree style fashion, and allows quick navigation and at-a-glance summaries of the state of your editing environment. In addition, a language specific source code browser is provided.
When editing files, you frequently need to refer to other information to help you in your work. CRiSP provides numerous views available in a contents window to the side of the editing area.
These views include:
- File view
Switch between tree view and details view. Create your own favorites and switch quickly from one file to another.
- Project files
Lists files in the current project allowing you to quickly select files for editing without having to navigate throughout the directory hierarchy to find files.
- Project browser
View and switch to defined tags in your project.
- Remote FTP view
Select files to load and edit from remote sites.
- Named clipboard entries
Create your own library of templates to paste into the current file. You have access to multiple clipboards with a mouse-click.
- Templates view
Displays a list of ready to paste templates that are specific to the programming language you are currently using. – create your own library of templates to paste into the current file CRiSP now allows users to create custom template samples without having to edit a file – just place files in the appropriate samples directory.
The contents window view at the side of the edit area can now be configured so you can control which tabs appear and the order they appear in.
CRiSP provides the new facility for collapsing or hiding text within a buffer. Various ways of collapsing the buffer so that you can see more of what you want to edit on the screen include:
- Showing functions/sections only
- Lines matching/not-matching a string
- Pre-processor directives