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
 Extract of source section within a namespace
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

xMRi
Tomato Guru

Germany
315 Posts

Posted - May 28 2014 :  02:39:36 AM  Show Profile  Reply with Quote
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.

Martin Richter [rMVP] WWJD http://blog.m-ri.de
"A well-written program is its own heaven; a poorly written
program is its own hell!" The Tao of Programming

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - May 29 2014 :  8:41:37 PM  Show Profile  Reply with Quote
A very good point, I have put in a feature request for this:

case=82605

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