Is there a way to automatically "consult" files on prolog?

I am kind of annoyed by having to manually re-consult my prolog every time I made changes in its source file.

Can I make it run automatically somehow? I have searched for some extensions on vscode IDE, but could not come to a solution. Any ideas or scripts?


  • Just say make in SWI. Similar functionality is available for SICStus.