Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>LinqPad Script to .NET NotebookNew to Visual Studio Code? Get it now.
LinqPad Script to .NET Notebook

LinqPad Script to .NET Notebook

Ambrose Leung

|
1,317 installs
| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Convert To .NET Notebook

Open a .linq file (LINQPad script) in VS Code, right click anywhere in the editor window and select the 'Convert to .NET Interactive Notebook'

  • Context menu item for conversion only appears for .linq files.
  • This extension runs entirely offline, code cells importing nuget packages may require internet connection

This project was created as part of a Microsoft Hackathon and is in a "proof of concept" stage.

Video

Open .linq file, Right click editor, Convert

Requirements

  • .NET Interactive Notebooks (VS Code extension)
  • .NET 6 (required by conversion binaries)

Extension Settings

None

Known Issues

  • You have to wait for VS Code to load the .NET Interactive engine before you click play on the first cell
  • Restart VS Code if the Cells are not running properly

Release Notes

0.0.2

Now working in Linux (using dotnet as the launch executable)

0.0.1

Initial release


For more information

  • Binaries for .linq to .ipynb conversion

Enjoy!


Example Linqpad format:

<Query Kind="Program">
  <NuGetReference>Newtonsoft.Json</NuGetReference>
  <Namespace>Newtonsoft.Json</Namespace>
</Query>

void Main()
{
	var x = new Dictionary<string,string>();
	DictionarySetter(x);
	x.Dump("Dump with Heading");
	JsonConvert.SerializeObject(x).Dump();
}

void DictionarySetter(Dictionary<string,string> x){
	x["some key"] ="some value";
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft