Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Extract of source section within a 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
xMRi Posted - May 28 2014 : 02:39:36 AM
Hi!

I just used the refactor function "Move selection into a new file".
I selected a complete class, that was inside a namespace x.

The new file was created nut the code section was created without the Namespace.


Old:

namespace x
{
 // class to extract
 class xyz
 {
  ...
 } 
...
}


The code was extracted into the new file

#pragma once
// class to extract
class xyz
{
 ...
} 


If possible namespaces should be kept for the selection.

Thanks for you great product.
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - May 29 2014 : 8:41:37 PM
A very good point, I have put in a feature request for this:

case=82605

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