Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 VA Snippet Editor for "Create Declaration"
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

MrDoomMaster
Tomato Guru

251 Posts

Posted - Jun 01 2016 :  10:15:27 AM  Show Profile  Reply with Quote
Is it possible to edit "Create Declaration" via the snippet editor? I'd like the ability to add a comment block above the function declarations added to class header files.

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - Jun 01 2016 :  1:14:42 PM  Show Profile  Reply with Quote
Unfortunately not currently. We are considering adding a snippet to allow you to control the formatting at some point, but I don't currently have an estimate for when this might happen:

case=13743

Are you aware that Document Method is designed for inserting a comment block for a function?

https://wholetomato.fogbugz.com/default.asp?W161

zen is the art of being at one with the two'ness
Go to Top of Page

MrDoomMaster
Tomato Guru

251 Posts

Posted - Jun 07 2016 :  11:03:54 AM  Show Profile  Reply with Quote
Yes, and I do use the Document Method functionality. But it becomes a multi-part process for me:

1. Do "Create Declaration"
2. ALT+O to go to header file
3. Find the declaration I just created
4. Move it to the appropriate access specifier (public, private, or protected). (Would be nice if VAX asked me which section to put it under)
5. Add whitespace before/after the declaration (VAX just throws it in the class with no whitespace padding around it)
6. Do "Document Method"

This is very tedious.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - Jun 15 2016 :  8:51:17 PM  Show Profile  Reply with Quote
Sorry for the slow reply. This is more steps than you should be dealing with.

Which IDE and version of VA are you using?

With VS2015 and VA 2102, when I trigger Create Declaration I am taken directly to the header file, and to the new declaration. This does not solve the formatting or access specifier, but it does simplify and speed things up for you. So I am wondering why you are having to hunt up the declaration like this.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000