Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Prolog RunnerNew to Visual Studio Code? Get it now.
Prolog Runner

Prolog Runner

Elias Grewe

|
3,361 installs
| (1) | Free
Runs your prolog code like a script.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

prolog-runner README

This runs your prolog code like a script.

The extension requires swipl in your PATH.

screenshot

Because the default language assignment for .pl files is Perl, you may need to change the language to Prolog manually in the bottom right corner:

Change Language to Prolog

Example

Just add the initialization/1 predicate to your file (see https://www.swi-prolog.org/pldoc/man?predicate=initialization/1).

e.g.:

:- initialization run.

run :- write('Hello, this is a simple Prolog program!').

License MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft