User forums > Using Code::Blocks

Changing default properties on new files

(1/2) > >>

K-Sys:
Hello,
I recently started to learn Vulkan and successfully compiled everything with CodeBlocks so far.
Now I'm starting to write some shaders and wanted to automatically compile them with the rest of the project.
I managed to set up a custom compile command for them (via advanced compiler options, for file endings .vert and .frag) and that works great.

However when adding those files to my project or creating new ones the compile option in the files properties is unchecked, which means they won't actually get compiled unless i manually check that box for each file.
In contrast when creating a new .cpp file the compile option and the link option both are checked by default.

Is there any way to change this behaviour, so all my shader files (.vert and .frag) get the compile option checked by default?
I couldn't find any setting for that, nor a solution when googling for the problem.

oBFusCATed:
What happens if you add them to "Sources" in Projects -> Project tree -> Edit file types & categories?
I don't guarantee that it will work. :)

K-Sys:
No that doesn't seem to work either.
I also tried creating a new category for shaders, but there doesn't seem to be a setting to change those default properties of new files.

oBFusCATed:
Then you'll have to read to source :)

K-Sys:
What do you mean by that?

Navigation

[0] Message Index

[#] Next page

Go to full version