Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 VA snippet macro bug

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
lex Posted - Jan 20 2018 : 07:38:33 AM
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.
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jan 20 2018 : 11:10:42 AM
Excellent news, thank you for the update.
lex Posted - Jan 20 2018 : 09:35:29 AM
I didn't have the latest version of VS. It works with 15.5.4. Thank you!
feline Posted - Jan 20 2018 : 08:54:30 AM
Which version of VA are you using? Also which version of VS2017 are you using?

The current version of VS2017 is 15.5.4.

VA has had to make some changes to how it watches for changes to the loaded project in different versions of VS2017, so I need to know what versions you are using. If you are using the latest version of both VA and VS2017 then this should be working correctly.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000