Separate formatting rules for .h and .cpp files

Is it possible to have separate formatting rules for .h and .cpp files?

2 comments
Comment actions Permalink

Hello,

ReSharper C++ does not support that at the moment. What's your use case and what rules do you want to set separately for .h and .cpp files?

I believe it's possible to have per-project formatting settings (see https://blog.jetbrains.com/dotnet/2012/01/18/per-project-settings-or-how-to-have-different-naming-styles-for-my-test-project/ for details), so you could move your header files into a separate project and specify different formatting rules for it.

0
Comment actions Permalink

We have different indenting rules for .h and .cpp files.

0

Please sign in to leave a comment.