Author Topic: Customised C/C++ project template with recursive wildcards and Directory View  (Read 310 times)

pieterc

  • Community Member
  • Posts: 29
  • Hero Points: 3
Hi there!

I want to create a customized C/C++ project template so that I don't have to manually do the same steps each time after selecting the "Other C/C++" project template. The project must add all *.h;*.c wildcards recursively and set the Folder View to Directory View.

I tried the procedure described here:
https://community.slickedit.com/index.php?topic=8551.0

Unfortunately this does not work anymore. There is no "<Files AutoFolders="PackageView">" node in the usrprjtemplates.vpt file. I can not find a way to add recursive wildcards either.

Thanks in advance,
Pieter

pieterc

  • Community Member
  • Posts: 29
  • Hero Points: 3
To answer my own question, I edited the "usrprjtemplates.vpt" file (as discussed in https://community.slickedit.com/index.php?topic=8551.0) and manually added the following at the end of the <Template> XML node:
<Template
....
    <Files AutoFolders="DirectoryView">
        <F
            N="*.c"
            Recurse="1"
            Excludes=""/>
        <F
            N="*.h"
            Recurse="1"
            Excludes=""/>
        <F
            N="*.S"
            Recurse="1"
            Excludes=""/>
        <F
            N="Make*.*"
            Recurse="1"
            Excludes=""/>
    </Files>
</Template>

It worked  ;D

TKasparek

  • Senior Community Member
  • Posts: 185
  • Hero Points: 23
This is exactly what I've done for all my projects as well.

To make the changes a little easier, you can modify your project with the wildcards you want and then copy those into the template file from your project file.