Patch to built in command:
c_expand_space
Written for:
SlickEdit 14.0, but can probably be applied to 13 (maybe even earlier versions).
Description:
Typing #include in a Slick-C file and then pressing Spacebar pops up a list of header files from the current project, to autocomplete the #include directive. This patch adds the same functionality in C/C++ files.
Installation:
1. Open the macros\c.e file.
2. Find the c_expand_space command.
3. Find the line "} else if ( pos(' 'word' ',EXPAND_WORDS) ) {" in the function.
4. Insert the patch code from below above that line.
5. Reload the module (Macro|Load Module).
Warning: Modifying built in macros can potentially be dangerous, and modifications can get overridden when upgrading. Exercise caution.
// BEGIN PATCH
} else if ( word=="#include") {
replace_line(indent_string(width)word' ""');
_end_line();
left();
_do_list_members(false, true);
// END PATCH
} else if ( pos(' 'word' ',EXPAND_WORDS) ) {