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
 Move to new file + namespace
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

tomkulaga
Senior Member

25 Posts

Posted - Jul 06 2015 :  10:00:44 PM  Show Profile  Reply with Quote
I have the following code:

namespace tt
{
namespace dd
{
class ff {};
}
}

when i select the line containing the class declaration, and choose "Move Selection to new file", it moves and keeps the indent level, but does not keep it in the same namespace.

Can this been an option in the Move To New File dialog to preserve the namespace of the selection?

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jul 06 2015 :  10:28:22 PM  Show Profile  Reply with Quote
We are planning to add a "move class to new file" refactoring command:

case=31484

It will be the proper way to do it, since "Move Selection to new file" was designed to work on any selection regardless of the context, as a "pure", simple command.
Go to Top of Page

tomkulaga
Senior Member

25 Posts

Posted - Jul 06 2015 :  10:46:05 PM  Show Profile  Reply with Quote
Excellent thanks.
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