This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Feature Request: uVision Automatically add header file to group

Feature Request: uVision

When I am writing an application I like to have the header files in a project group so that they are easily accessible. Right clicking a group, selecting "Add New Item to Group" and creating a .c file automatically adds it to that group and I think it would be convenient to have the same functionality for a .h file. In fact all the other file types are automatically added to the selected group its just .h files that are different.

I know that the .h file is accessible once it is included in a .c file by expanding the tree in the project view. I do not find it convenient however when I have to search through about 50 .h files associated to that .c file, the majority of which are part of some 3rd party library (e.g. RTOS and STM Hal libraries), to find the one I want.

Parents
  • Hello Stephen,

    We can already add individual header files into a folder from the Project Window, just like a source file. Just search for existing header files, instead of existing C files in the Windows file search. When an already-included header file is added directly into the Project Window, it does not impact the build, at all. I think it's ignored, and only useful for the editor's convenience.

    The trick is the tools don't know which header files are important, until after the first compile/link, when the include paths are searched and the header file dependencies are resolved. We'd still be looking at lots of header files with any automated process that's trying to be thorough and wants to display the dependencies.

    Thanks,
    Zack

Reply
  • Hello Stephen,

    We can already add individual header files into a folder from the Project Window, just like a source file. Just search for existing header files, instead of existing C files in the Windows file search. When an already-included header file is added directly into the Project Window, it does not impact the build, at all. I think it's ignored, and only useful for the editor's convenience.

    The trick is the tools don't know which header files are important, until after the first compile/link, when the include paths are searched and the header file dependencies are resolved. We'd still be looking at lots of header files with any automated process that's trying to be thorough and wants to display the dependencies.

    Thanks,
    Zack

Children