Tips for MS Visual Studio 2010

This page contains several tips & tricks which may be found useful during vrecko development.

Extensionless headers

When using default settings, only files with one of the extensions (*.h, *.hpp, *.hxx*.hh) are recognized by Visual Studio as a C++ headers. Therefore, one of the consequences is that extension-less files such as headers from OSG library are not offered by Intellisense when preprocessor directive #include is used.

To solve this issue, follow these steps

  1. Open Visual Studio 2010 (no need to load any project beforehand)
  2. Select Tools -> Options from the top menu.
  3. Select Text Editor -> File Extension in the left column.
  4. Check the option Map Extensionless files to: at the bottom and select Microsoft Visual C++ from the list right next to it.

Indentation

If you wish to change indentation settings, follow these steps:

  1. Open Visual Studio 2010 (no need to load any project beforehand)
  2. Select Tools -> Options from the top menu.
  3. Select Text Editor -> C/C++ -> Tabs in the left column (you may also choose “All languages” if you’re sure about that decision).
  4. Choose your preferred indentation settings. It is recommended to use the following settings during the development process of vrecko:
    • Indenting: Smart
    • Tab size: 4
    • Indent size: 4
    • Insert spaces