Is it possible to automatic fix the namespaces for a specific directory?

Hello

Assume that you have 10 classes in FolderA and you use the Extract Interface
refactoring to create interfaces for those 10 classes. If you select the
option "place in other file" these files will be placed in FolderA as well.
When you drag and drop these interfaces to a seperate FolderB it would be
great if we would have the possibility to right-click FolderB and select
"Autofix namespaces to match folder structure" or something like that. Don't
you agree?

Regards

Gabriel Lozano-Moran


4 comments
Comment actions Permalink

Hello Gabriel Lozano-Moran,

We wanted to do this in ReSharper 4, but didn't have enough time to make
it really good. It will be implemented in one of the next versions.

Sincerely,
Ilya Ryzhenkov

JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


G> Hello
G>
G> Assume that you have 10 classes in FolderA and you use the Extract
G> Interface refactoring to create interfaces for those 10 classes. If
G> you select the option "place in other file" these files will be
G> placed in FolderA as well. When you drag and drop these interfaces to
G> a seperate FolderB it would be great if we would have the possibility
G> to right-click FolderB and select "Autofix namespaces to match folder
G> structure" or something like that. Don't you agree?
G>
G> Regards
G>
G> Gabriel Lozano-Moran
G>


0
Comment actions Permalink

Fair enough :)


"Ilya Ryzhenkov" <orangy@jetbrains.com> wrote in message
news:76a2bd0b15962d8ca96037234ca1d@news.intellij.net...

Hello Gabriel Lozano-Moran,

>

We wanted to do this in ReSharper 4, but didn't have enough time to make
it really good. It will be implemented in one of the next versions.

>

Sincerely,
Ilya Ryzhenkov

>

JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

>
>

G> Hello
G> G> Assume that you have 10 classes in FolderA and you use the Extract
G> Interface refactoring to create interfaces for those 10 classes. If
G> you select the option "place in other file" these files will be
G> placed in FolderA as well. When you drag and drop these interfaces to
G> a seperate FolderB it would be great if we would have the possibility
G> to right-click FolderB and select "Autofix namespaces to match folder
G> structure" or something like that. Don't you agree?
G> G> Regards
G> G> Gabriel Lozano-Moran
G>



0
Comment actions Permalink

Hello all,

What would be even nicer (maybe) is when you extract or move a class you can specify the folder as an extra option (defaults to the current) --- then the namespace can be set on creation.

Just my 2c.

Eben

0
Comment actions Permalink

I think both approaches would be great features for RS.

0

Please sign in to leave a comment.