Pseudo.NET

Write pseudocode in your own words.
Get a running program.

Pseudo.NET compiles free-form pseudocode to C# with a local language model. No imposed syntax. By default: no account, no API key, and nothing leaves your machine.

Note: the extension does not include the language model that reads your pseudocode. It needs Ollama and a model of about 5 GB installed on your computer. The ready-made samples run without them. No Ollama? A free remote model works too (your pseudocode is then sent to that service).

Get it on the Marketplace Download the .vsix Source on GitHub

Tetris running, written as pseudocode

Two project types

PseudoCode

Console applications. Algorithms, exercises, teaching.

PseudrawCode

Windows with drawing, keyboard and a timer. Small games and animations.

Six ready-to-run samples are included as project templates: Snake, Tetris, Bounce, Primes, Bubble sort, Guess the number. The first run needs no Ollama. See them in the gallery.

For teachers

Agents write code now, yet students still need to learn to think algorithmically. Pseudocode is the classic way to teach it, but it was never executable. With Pseudo.NET, a student's pseudocode runs as written, in their own language and style, and the generated C# is a real program to read afterwards.

What it does and does not do for a teacher, with our test results →

Pseudocode in your language

Write in English, French, Spanish, German, Italian, Portuguese, Chinese, Japanese, Russian… The same primes program, in French and indentation only:

nombresPremiers = une nouvelle liste

définir est-ce que compteur est premier, qui retourne un booléen
	estPremier = vrai
	si compteur est inférieur à 2 alors
		estPremier = faux
	répéter diviseur de 2 à 50
		si diviseur est inférieur à compteur alors
			reste = compteur modulo diviseur
			si reste est égal à 0 alors
				estPremier = faux
	retourner estPremier

répéter compteur de 2 à 50
	premier = est-ce que compteur est premier
	si premier alors
		ajouter compteur à nombresPremiers

afficher le texte "Nombres premiers jusqu'à 50 :"
pour chaque nombre dans nombresPremiers
	afficher nombre

Colour and key names have per-language JSON tables, and compiler messages are localized. Adding your language is writing a file.

Install

Two ways, same result. Either way you need Ollama for your own programs, then once: ollama pull qwen2.5-coder:7b (about 5 GB). The samples run without it.

Without Ollama: a free remote model (optional)

The compiler can ask a remote model instead of a local one, including a free one through OpenRouter. Your pseudocode is then sent to OpenRouter and to the model's provider; the compiler warns you each time it does, and a program that has not changed is not sent again. Requires version 0.4.7 or later.

  1. Create an account on openrouter.ai, then Keys → Create Key, and copy the key.
  2. In a Windows terminal, run these four commands (paste your key in the last one), then restart Visual Studio:
setx PSEUDONET_PROVIDER openai
setx PSEUDONET_API_URL https://openrouter.ai/api/v1
setx PSEUDONET_MODEL nvidia/nemotron-3.5-lightning:free
setx PSEUDONET_API_KEY "sk-or-your-key"

Measured with that free model (one run each): our fidelity test 8 of 8, the AP CSP-style programs 6 of 10 (the local default model: 7 of 8 and 5 of 10). A new program takes about 20 to 60 seconds. Free models have a daily limit and can be saturated at busy times; then retry later or pick another :free model. A paid Claude or OpenAI key works too. Details in the README.

From the command line (any editor)

Requires the .NET 8+ SDK. Pseudraw (window) templates need Windows.

dotnet new install PseudoNet.Templates
dotnet new pseudocode -n Hello
cd Hello
dotnet run

Try a ready-made game (no Ollama needed for samples):

dotnet new pseudo-tetris -n MyTetris
cd MyTetris
dotnet run

Other templates: pseudrawcode, pseudo-snake, pseudo-bounce, pseudo-primes, pseudo-bubble-sort, pseudo-guess-number. Then edit Program.pseudo in any editor and run again.

In Visual Studio

  1. Visual Studio 2026 (Community is fine; 2022 is intended but untested).
  2. Install it from the Visual Studio Marketplace, or in Visual Studio: Extensions → Manage Extensions → search “Pseudo.NET” → Install. (Or download the .vsix and open it.)
  3. File → New → Project → search “Pseudo”. Press F5.

Honest limits

A 7B local model is good, not perfect: very long or ambiguous programs may need rewording. Windows only for now (Visual Studio or the .NET SDK from the command line).

Feedback

Tried it, or want to? Tell me what works, what breaks, and which programs you would like as samples: open a discussion.

Support

Pseudo.NET is free and will stay free. If it helped you or your students and you want to say thanks for the idea, a voluntary donation is welcome, never required.

Support on Ko-fi