Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7599387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:38:55+00:00 2026-05-30T22:38:55+00:00

I have a lot of classes with several methods. And i need to separate

  • 0

I have a lot of classes with several methods.
And i need to separate each method of the class in its own file, but kept they in the same class( make it partial).

Exploring the R# 6.1 options i haven’t found linear possibility. May be there are hidden options?

Thanks

Added:

This refactoring is not usual because this code is UI tests, that grouped in class by the part of functionality.
We need to separate them to be able to work on them separately from source control.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T22:38:57+00:00Added an answer on May 30, 2026 at 10:38 pm

    I’m using ReSharper 5.1 and do not know such refatoring in one step.

    The fastest way I know is:

    1. Create partial classes
      Write a second declaration of partial class with empty body and copy/paste or
      double (Ctl+D) it so often as the count of different files should be.
    2. Create files
      Go to every class declaration, press Ctrl+Shift+R and select Move To Another File…,
      enter a new file name and press OK.
    3. Move methods
      Do for every method to move: Go to method, press Alt+Enter,
      select Move declaration(s) to another type part and select file.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a lot of comparer classes where the class being compared is simply
Let's we have a lot of such classes(millions) class WordInfo { string Value; string
I have several small classes that are all peers of each other declared and
I have a lot of classes for data-access in one of my projects, but
I have a set of classes, each of which need to decide at some
I have a Role and several classes that mix-in the role. The Role class
I have a lot of classes on my project, my Source Editor displays the
Suppose, I have a lot of classes, which are constructed using Java reflection (for
i have an android project which has a lot of classes I've built. i
I've got a program where a lot of classes have really complicated configuration requirements.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.