T O P I C R E V I E W |
MrDoomMaster |
Posted - Jun 01 2016 : 10:15:27 AM 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. |
3 L A T E S T R E P L I E S (Newest First) |
feline |
Posted - Jun 15 2016 : 8:51:17 PM 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. |
MrDoomMaster |
Posted - Jun 07 2016 : 11:03:54 AM 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. |
feline |
Posted - Jun 01 2016 : 1:14:42 PM 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 |