Forum Visual Studio

Filename or namespace in code templates

Is it possible to somehow retrieve the name of the file one is working in or the default namespace for creating a code template with?

So that for example a code snippit could include a $namespace$ property which I could somehow get it to auto generate the default namespace of the project or the same idea with the file name as a $classname$??

Sign In or Register to comment.