Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio "go to header file" not working with hpp files

The very handy right click menu option "Go To Header File" in Visual Studio 2005 doesn't seem to work if my header file is an .hpp file for that module; I've deleted/rebuilt the intellisense file but it still doesn't want to know. Is there a setting or something somewhere to do this?

like image 969
Bob Avatar asked Apr 21 '10 07:04

Bob


People also ask

Is HPP a header file?

HPP files are a particular kind of developer source code file. They are so-called header files that contain source code written in C++, a programming language. The HPP file can contain variables, constants and various kinds of data types. Using #include, HPP files can be inserted into other source code files like CPP.

Is HPP same as H file?

h is more widely used for header files than . hpp when, . h refers to C header and . hpp refers C++ header.

How do I run a header file in Visual Studio?

Place your caret on the first line of any C# or Visual Basic file. Press Ctrl+. to trigger the Quick Actions and Refactorings menu. Select Add file header. To apply the file header to an entire project or solution, select Project or Solution under the Fix all occurrences in: option.


1 Answers

Does your project filter for the headers folder include hpp?

You can check by right clicking on the Header Files folder going to properties and it should have something like h;hpp;hxx;hm;inl;inc;xsd defined in the Filter property.

This can sometimes be a quirky feature of Visual Studio I've found since upgrading to Visual Studio 2010 that it takes and inordinately longer amount of time to use goto definition or goto declaration to the point where I've completely stopped using it in favor of just searching the project or solution and picking it out from the output window instead.

like image 104
AJG85 Avatar answered Nov 02 '22 04:11

AJG85