kungfooman
kungfooman

Reputation: 4893

How to change the default path separator in Visual Studio?

I have cross-platform projects, which I have to compile with GCC, Clang and MSVC. Whenever I use the Visual Studio's and type #include <foo..., IntelliSense suggests \ as the path separator. This obviously works on MSVC, but on GCC and other compilers triggers an error.

Is there a way to tell Visual Studio to use / instead?

Upvotes: 1

Views: 1836

Answers (1)

tambre
tambre

Reputation: 4853

This can be done as follows:

  1. Go to "Tools → Options… → Text Editor → C/C++ → Advanced"
  2. Toggle "Use Forward Slash in #include Auto Complete" under the "IntelliSense" section

Upvotes: 3

Related Questions