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
 No trailing blank when move implementation to file
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

av0tar15
Junior Member

19 Posts

Posted - Sep 27 2008 :  8:27:36 PM  Show Profile  Reply with Quote
Hi,

I'm doing cross-platform development and gcc complaints if the last name in source file is not blank. When I use "Move implementation to source file" refactoring VSX doesn't observe this rule and occupies the last line with code. Fixing this trivial issue will make some lifes better w/o harming anyone who doesn't care :).

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Sep 28 2008 :  6:29:17 PM  Show Profile  Reply with Quote
Did you mean last line? (You wrote "last name".)

If yes, you can change this easily, since every refactoring has it's own template here:

VA Options -> Advanced -> Suggestions -> Edit VA Snippets (button)

Find "Refactor Create Implementation" snippet (which is a tree node) and append an enter to it's template.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Sep 29 2008 :  06:21:57 AM  Show Profile  Reply with Quote
In addition we are considering a feature to try and make sure the file ends with a blank line when VA inserts closing brackets:

case=158

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

av0tar15
Junior Member

19 Posts

Posted - Sep 29 2008 :  8:54:24 PM  Show Profile  Reply with Quote
quote:

In addition we are considering a feature to try and make sure the file ends with a blank line when VA inserts closing brackets:


I think this one would solve the problem, because there's a blank line in "Create Implementation" template already, but this doesn't help.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Sep 30 2008 :  08:04:47 AM  Show Profile  Reply with Quote
Try adding a second blank line to the end of the snippet. I have just tested this here, and with two blank lines in the snippet a single blank line is added to the code.

I am not quite sure why there is this difference, but it is easy enough to work around.

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