In addition to the standard commands that are built into Source Insight, you can define custom commands. Custom commands are similar to shell batch files. They execute external command-line programs and Windows GUI programs. Source Insight allows custom commands to execute in the background. The output of custom commands can be captured into a file for editing, or can be pasted into the current selection.
The Options > Custom Command dialog box allows you to define and run custom commands. Once defined, a custom command is like any other command. It can be assigned to a menu or a keystroke can be assigned to it. Custom commands are part of the current configuration.
Custom commands are useful for launching a compilation. By having a custom command that runs the compiler or make program, you can capture the compiler error messages and have the errors parsed and have source links pointing to the erroneous source code automatically.
You can also implement a variety of text filters using custom commands. For example, you could define a Sort custom command that runs a sort filter and pastes the output back over the current selection.
See also: “Custom Commands”, “Key Assignments”, and “Menu Assignments”.