Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 $PROJECT$ VA Snippet Macro

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
Dunemaster Posted - Jul 22 2014 : 04:47:01 AM
Hi!

We have a guidline that requires to put the contents of header files inside include guard of the following pattern:

#pragma once

#ifndef __{PROJECT}_$FILE_BASE_UPPER$_H__
#define __{PROJECT}_$FILE_BASE_UPPER$_H__

$selected$
#endif // __{PROJECT}_$FILE_BASE_UPPER$_H__

unfortunately, I could not find a project macro in VA snippet editor.

This small addition will be much appreciated.
Thanks.
3   L A T E S T    R E P L I E S    (Newest First)
sean Posted - Sep 19 2014 : 12:34:48 AM
case=969 is implemented in build 2047
Dunemaster Posted - Jul 24 2014 : 01:05:36 AM
quote:
Originally posted by feline

For now, have you considered prompting for the Project name, so use the Snippet:


#pragma once

#ifndef __{$PROJECT$}_$FILE_BASE_UPPER$_H__
#define __{$PROJECT$}_$FILE_BASE_UPPER$_H__

$selected$
#endif // __{$PROJECT$}_$FILE_BASE_UPPER$_H__


By using "$PROJECT$" instead of "PROJECT" VA will prompt you for the project name, which will then be inserted into the Snippet code. You do have to type in the project name manually, but only the once.



Thanks for the tip, Feline!
feline Posted - Jul 23 2014 : 11:27:24 PM
Unfortunately no, you cannot currently do this directly, but we are considering adding this ability:

case=969

For now, have you considered prompting for the Project name, so use the Snippet:


#pragma once

#ifndef __{$PROJECT$}_$FILE_BASE_UPPER$_H__
#define __{$PROJECT$}_$FILE_BASE_UPPER$_H__

$selected$
#endif // __{$PROJECT$}_$FILE_BASE_UPPER$_H__


By using "$PROJECT$" instead of "PROJECT" VA will prompt you for the project name, which will then be inserted into the Snippet code. You do have to type in the project name manually, but only the once.

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