# Using vscode with SWI-Prolog

**URL:** <https://swi-prolog.discourse.group/t/using-vscode-with-swi-prolog/7772>\
**Category:** Tools\
**Created:** [September 10, 2024, 9:07am UTC](https://swi-prolog.discourse.group/t/using-vscode-with-swi-prolog/7772 "2024-09-10T09:07:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kjp](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/kjp/32/6776_2.png) [@kjp](https://swi-prolog.discourse.group/u/kjp)\
**Post date:** [September 10, 2024, 9:07am UTC](https://swi-prolog.discourse.group/t/using-vscode-with-swi-prolog/7772/1 "2024-09-10T09:07:02Z")

</div>

I’m using: SWI-Prolog version 9.2.6 threaded, 64bit on Windows 11.

I want use vscode as my Prolog editor:

After install I could create and edit Prolog files, and test under swipl on the vscode integrated terminal.

The problem is that the SWI-Prolog windows console keeps launching over the top of vscode repeatedly.

So I modified the init.pl file predicate normally set to :- set\_prolog\_flag(editor, pce\_emacs) to

:- set\_prolog\_flag(unknown, fail). and also tried :- set\_prolog\_flag(editor, vscode).

But what I’m getting is:

Warning: c:/users/kpurn/appdata/roaming/swi-prolog/init.pl:52:  
Warning: Using a non-error value for unknown in the global module  
Warning: causes most of the development environment to stop working.  
Warning: Please use :- dynamic or limit usage of unknown to a module.  
Warning: See [How to deal with the Prolog dynamic database?](https://www.swi-prolog.org/howto/database.html)  
Welcome to SWI-Prolog (threaded, 64 bits, version 9.2.6)  
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software.

What settings are required to inhibit the launch of the SWI-Prolog windows console?

Regards  
Kevin
