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

  • Home
  • SEARCH
  • 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 6132771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:08:38+00:00 2026-05-23T17:08:38+00:00

Is there any Visual Studio tool that let’s you run C# code without having

  • 0

Is there any Visual Studio tool that let’s you run C# code without having to compile an entire project or create a new project/solution just to test that bit of code?

The problem I often run into is that sometimes I’ll be curious “How does this code work in this context?” and I don’t really feel like creating a new project/solution just to test that bit of code. Is there any tool out there (bonus if it can be integrated into Visual Studio) that let’s me quickly compile a tiny piece of code and run just that piece of code?

I remember in the past LINQPad would let me run LINQ queries without the need to create an entirely new project/solution.

  • 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-23T17:08:38+00:00Added an answer on May 23, 2026 at 5:08 pm

    Well, there’s LINQPad as you’ve mentioned. You can use that for more than just queries – you can write fairly arbitrary bits of C# in it.

    I have Snippy which I really wrote for C# in Depth, so that I could present snippets like this:

    int x = 10;
    Console.WriteLine(x);
    

    and compile and run those with nothing else. It also handles methods, like this:

    static int Foo()
    {
        return 10;
    }
    ...
    Console.WriteLine(Foo());
    

    It’s got no Intellisense etc, but it may be good enough for you 🙂

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

Sidebar

Related Questions

Visual Studio 2010 .NET 3.5 Is there any tool that can trace the http
Is there any sort of plug-in or tool available for Visual Studio 2008 to
Is there any Visual Studio Add-In that can do the remove method refactoring? Suppose
Is there any Visual Studio add-on (or windows/unix stand-alone program) that creates stub implementations
Are there any conflicts with having any combination of Visual Studio 2003, 2005 and/or
Is there any way to make Visual Studio show the code of a control
Is there a tool in the market that takes Visual Studio nmake files, and
Is there any Visual Studio Express plug ins for source versioning? I am starting
Is there any way to prevent Visual Studio from creating a VSMacros80 folder in
Is there any way to make Visual Studio 2008 Express store all the files

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.