Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Move to new file + namespace

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
tomkulaga Posted - Jul 06 2015 : 10:00:44 PM
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?
2   L A T E S T    R E P L I E S    (Newest First)
tomkulaga Posted - Jul 06 2015 : 10:46:05 PM
Excellent thanks.
accord Posted - Jul 06 2015 : 10:28:22 PM
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.

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