C++ move to new file

One of THE MOST useful productivity features I find in R# for C# is the move to new file. The ability to skeleton a few classes in a file and then split them out quickly is a time saver but also helps to keep things organised (devs are lazy right!).  In C++ with 2 files to make per class it would help even more

 Is there any chance we could get this in C++ - e.g. to move a class declaration into it's own header (with include guards or #prama once).  And make an empty .cpp file including that.  Then existing refactorings can move things from header to cpp file or an option to move functions from another file into the “correct” one

(last asked in 2017 from what I can see: https://resharper-support.jetbrains.com/hc/en-us/community/posts/115000130350-Move-type-to-new-file)

0
3 comments

Hello Nigel,

Please refer to the following feature request - Move type to another namespace. You are welcome t comment or vote for it.

0

Thanks, but that's not at the same thing. Namespaces and Files are completely orthogonal concepts - moving a class to a new namespace is just a text change. What I'm after is a quick easy way to create new .h/.cpp files with content from another file.  I can open a new issue instead?

(incidentally the one you mean relates to https://youtrack.jetbrains.com/issue/RSCPP-13874/Move-class-to-another-namespace-refactoring) 

0

Hello Nigel,

Sorry for confusion. Yes, you are welcome to open a new issue providing all the details you consider important.

Thank you.

0

Please sign in to leave a comment.