Author Topic: Auto file name expansion for #include  (Read 3044 times)

davehohl

  • Senior Community Member
  • Posts: 271
  • Hero Points: 27
Auto file name expansion for #include
« on: July 15, 2009, 12:15:09 AM »
Auto file name expansion for #include (see http://community.slickedit.com/index.php?topic=4908.msg20323#msg20323)

UPDATE:  I checked c.e and found that the patch to do this was included, but the variable that enables it -- def_c_expand_include -- was defaulted to 0.  Is there a configuration option to enable this feature?  I looked but could not find it.
« Last Edit: July 15, 2009, 12:33:28 AM by davehohl »

chrisant

  • Senior Community Member
  • Posts: 1410
  • Hero Points: 131
Auto file name expansion for #include
« Reply #1 on: July 15, 2009, 01:54:24 AM »
Go to the SE command line (in most emulations it is Escape), and type:
set-var def_c_expand_include
And press Enter.
Then type 1, and press Enter.

davehohl

  • Senior Community Member
  • Posts: 271
  • Hero Points: 27
Re: Auto file name expansion for #include
« Reply #2 on: July 15, 2009, 04:14:09 PM »
Go to the SE command line (in most emulations it is Escape), and type:
set-var def_c_expand_include
And press Enter.
Then type 1, and press Enter.

Thanks, that did the trick!  It seems like there ought to be a config option in the UI to enable this, though.  Why would the SE team go the trouble of adding this capability but not make it readily apparent to people?