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 7992893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T13:42:04+00:00 2026-06-04T13:42:04+00:00

Sometimes when I’m developing I may prefer to quickly inline classes, interfaces and/or enums

  • 0

Sometimes when I’m developing I may prefer to quickly inline classes, interfaces and/or enums when I’m building a fresh design or from within a test fixture. However, I find it inconvenient to interrupt my thought process to create new code files, copy and paste the class/interface/enum written inline to the new file, and all the time it takes to navigate between them.

I’m looking for an extension, macro, or hidden shortcut combo that will automatically create a file for the highlighted or selected inline class/interface/enum, and, if possible, copy the using list so that it can be built (but remove & sort will clean it up later).

I’m open to extensions, macros, or hidden shortcut keys. Suggestions?

Edit #1: ReSharper looks awesome, yes, and it appears to have exactly what I need, but I would like to find a free solution, if it exists, that didn’t push me back $200.

Edit #2: After your helpful input, I’m pushing for my dev team to all run the ReSharper trial, and re-evaluate in a few weeks if the value-add is worth it. We want keep our extension use consistent, so I’m hoping we all find it equally worthwhile.

Example: I want to turn this (IExample.cs):

using System.Linq;

public interface IExample
{
}

public class Example : IExample
{
}

public enum ExampleType
{
}

…into these:

IExample.cs:

using System.Linq;

public interface IExample
{
}

Example.cs

using System.Linq;

public class Example : IExample
{
}

ExampleType.cs

using System.Linq;

public enum ExampleType
{
}
  • 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-06-04T13:42:05+00:00Added an answer on June 4, 2026 at 1:42 pm

    ReSharper offers the feature Move to another file to match type name, the ALT+Enter shortcut makes your work faster.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sometimes I need to quickly extract some arbitrary data from XML files to put
Sometimes when reading a socket from the TcpClient class , the stream comes in
sometimes we can from ClassA do : import com.software.ClassB; classbObject = new ClassB ;
Sometimes I forget to implement a method in one of my classes, and Xcode
Sometimes i generate data that is as little as 1k. I thought it may
Sometimes I need the following pattern within a for loop. At times more than
Sometimes two image files may be different on a file level, but a human
Sometimes I need to set some string values from code, for example: Page.Title =
Sometimes there is situations where I need to take a value from a database
Sometimes, I felt method overloading may create confusion. class a { public: void copy(float

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.