Settings and activity
74 results found
-
4 votes
An error occurred while saving the comment -
1 vote
An error occurred while saving the comment Try the 7.5.4 beta and let me know whether it's fixed.
-
2 votes
An error occurred while saving the comment Create a statements-based query or a .cs file with the following content:
global using System;
global using System.Collections.Generic;
global using System.IO;
global using System.Linq;
global using System.Net.Http;
global using System.Threading;
global using System.Threading.Tasks;Save this to a file called "iusing.linq" or "iusing.cs".
Then in your query, #load that file (along with the other .cs files you wish to import):
#load "iusing"
or
#load "iusing.cs"See https://forum.linqpad.net/discussion/2636/lp7-does-not-handle-implicit-usings for the discussion.
-
0 votes
An error occurred while saving the comment You can already set selected indexes as follows:
var box = new SelectBox (SelectBoxKind.MultiSelectListBox, "one", "two", "three").Dump();
box.SelectedIndexes = new[] { 0, 1, 2}; -
1 vote
An error occurred while saving the comment You can achieve this by creating a 'queries' folder inside the LINQPad 6 (or LINQPad 5) application folder.
-
2 votes
An error occurred while saving the comment LINQPad behaves as Visual Studio in this regard. Ctrl+Space doesn't choose a random entry; it pops up a list unless there's only one matching item based on what you've already typed.
If you want to see a list even when there's only one matching entry, press Ctrl+K,L (same as in Visual Studio).
-
6 votes
An error occurred while saving the comment it sounds like you're after a macros feature in LINQPad. A hotkey maps to a user-definable action, where one of the action types is to open and run a query, with the query editor optionally hidden. I'll look into how easy this is to implement.
-
0 votes
An error occurred while saving the comment Have you thought about using LINQPad's HTML controls?
Something like this: http://share.linqpad.net/d8o2g3.linq
-
734 votes
An error occurred while saving the comment Work on a .NET Core version is underway, but to begin with it will target only Windows (.NET Core 3 Desktop). Cross-platform support may follow, but this will be a separate project and will require a review of the available cross-platform GUI libraries.
-
1 vote
An error occurred while saving the comment You can do this by clicking Advanced and under 'Extra connection string parameters', type 'password=...'
-
3 votes
An error occurred while saving the comment This would be hard to enforce - even if it's disabled through L2S, you could still make updates via SQL. Have you considered using different login credentials - with only db_datareader role enabled?
-
1 vote
An error occurred while saving the comment There's a keyboard shortcut for my extensions (Ctrl+Shift+Y)
-
1 vote
An error occurred while saving the comment This is how LINQPad currently works, with the exception of not having an option for Windows credentials. Try the latest beta - it now has a Windows credentials option. Bear in mind that NuGet will ignore this setting.
-
5 votes
An error occurred while saving the comment Use Ctrl+PageUp and Ctrl+PageDown for the alternative switching behavior.
-
3 votes
An error occurred while saving the comment Isn't this how it already works? For example, run this:
new { X=1, Y=2 }.Dump (exclude:"X");
new[] { new { X=1, Y=2 } }.Dump (exclude:"X");In both cases, only Y is dumped.
-
4 votes
An error occurred while saving the comment Do you have a repro? The following works correctly:
"foo".ToCharArray().Where(x => x
-
1 vote
An error occurred while saving the comment You can work around this by putting the snippets in the parent folder. (They'll then to VB too, but this is rarely a problem.)
-
4 votes
An error occurred while saving the comment Have you tried Environment.SetEnvironmentVariable? You can also write a method in My Extensions to set variables, and then call it in any query. For instance:
public static class MyVar
{
public static void Test()
{
Environment.SetEnvironmentVariable ("foo", "value");
Environment.SetEnvironmentVariable ("bar", "value");
}
}Then just call MyVar.Test();
-
12 votes
An error occurred while saving the comment The 5.07.06 beta fixes this problem (at least to the point where LINQPad will no longer hang). Autocompletion is likely to lag, though, with queries of this size.
-
248 votes
An error occurred while saving the comment The situation with regard portable deplpoyments has improved in recent betas:
http://www.linqpad.net/PortableDeployment.aspxYou can now portablize connections, drivers, default namespaces & references and user preferences, as well as queries, plug-ins and snippets.
If LINQPad were to omit the "tags:" in the search term, and generate "q=linqpaddriver", or "q=linqpaddriver [searchTerm]" where you've entered a searchTerm, would that work in your use-cases? I could enable this behavior when searching non-official NuGet feeds.