How Add Swi-Prolog Terminal in Vscode?

How can an SWL-Prolog terminal be added in VSCode?

Like PowerShell but SWI-Prolog terminal.

2

1 Answer

To create an SWI-Prolog terminal within Visual Studio Code, the process is the same as starting an SWI-Prolog terminal from a DOS prompt but you just start by creating an initial terminal in VSC.

  1. Using VSC menu Terminal > New Terminal
    or Ctrl+Shift+`

  2. Start SWI-Prolog from the command line using swipl

Microsoft Windows [Version 10.0.19041.685]
(c) 2020 Microsoft Corporation. All rights reserved.

C:\Users\Groot>swipl
Welcome to SWI-Prolog (threaded, 64 bits, version 8.3.8)
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software.
Please run ?- license. for legal details.

For online help and background, visit 
For built-in help, use ?- help(Topic). or ?- apropos(Word).     

1 ?- 

If you have an existing terminal open and want to add another terminal then in the upper right of the terminal

click on + and then at the command prompt > enter swipl.

Your terminal selector will now have an added swipl option.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.

Share this article
Twitter Facebook Pinterest