title: How to automatically indent #pragma directive in Visual Studio
body: <p>Does anyone have any idea on how to ensure that <code>#pragma</code> directives in Visual Studio 2013 (C++ project) are indented properly?</p>
  
  <p>I'm annoyed by the fact that Visual Studio always eliminates the indentation I made to these directives. It makes it difficult to collapse sections of my source code. The example below is an example of no indentation. If it was indented, then it would be easier to read.</p>
  
  <pre><code>void func()
  {
  #pragma region section 1
  #pragma endregion
  }
  </code></pre>