I have a VA snippet for header files:
#ifndef $SOLUTION_NAME_UPPER$_$PROJECT_NAME_UPPER$_$FILE_BASE_UPPER$_$FILE_EXT_UPPER$_
#define $SOLUTION_NAME_UPPER$_$PROJECT_NAME_UPPER$_$FILE_BASE_UPPER$_$FILE_EXT_UPPER$_
namespace $SOLUTION_NAME_LOWER$ { namespace $PROJECT_NAME_LOWER$ {
$end$
}}
#endif
The problem is that $PROJECT_NAME_XXX$ doesn't work for new files until the solution has been closed and reopened. It looks like this:
#ifndef SOLUTION1__HEADER_H_
#define SOLUTION1__HEADER_H_
namespace solution1 { namespace {
}}
#endif
And after the solution has been reopened:
#ifndef SOLUTION1_PROJECT1_HEADER_H_
#define SOLUTION1_PROJECT1_HEADER_H_
namespace solution1 { namespace project1 {
}}
#endif
I'm using Visual Studio Community 2017.