Skip to content

Settings and activity

6 results found

  1. 24 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    An error occurred while saving the comment
    Daniel Rubin commented  · 

    I know this is a really old suggestion, but it's still the top google result for "linqpad output color". As such, there's a better way to do what Itsey suggests: The Util.WithStyle() function.

    It can be used for console output (without losing whitespace):

    public static void WriteColor(string s, ConsoleColor col)
    {
    Console.WriteLine(Util.WithStyle(s, "color:" + col.ToString()));
    }

    or as part of dumping:

    public static T DumpColor<T>(this T obj, ConsoleColor color)
    {
    Util.WithStyle(obj, "color:" + color.ToString()).Dump();
    return obj;
    }

  2. 1,681 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    An error occurred while saving the comment
    Daniel Rubin commented  · 

    Lprun only handles some of the usecases which this suggestion would enable. It doesn't allow (as Franklin Ross suggested) creating a *distributable* exe file.

    https://linqpad.uservoice.com/forums/18302-linqpad-feature-suggestions/suggestions/1520279-ability-to-save-a-compiled-linqpad-script-to-an-ex was suggested to be a duplicate of this, but if lprun is considered to be "sufficient" to close this, then that feature will still be unaddressed.

    Daniel Rubin supported this idea  · 
  3. 92 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    Daniel Rubin supported this idea  · 
    An error occurred while saving the comment
    Daniel Rubin commented  · 

    You can almost accomplish this with snippets, if you have auto-complete (I don't know if you can use snippets without it). You can use them to import a set of references and using statements into the current query, but I don't know if it does database connections and it doesn't do code.

  4. 1,132 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    Daniel Rubin supported this idea  · 
  5. 276 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    Daniel Rubin supported this idea  · 
  6. 843 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    Daniel Rubin supported this idea  ·