My extension for running/testing solutions in VS Code

Revision en2, by Gediminas, 2024-11-10 19:10:14

Hi,

I've been using and maintaining this VS Code extension for over two years and it's been extremely useful for both CP and random programming projects. So I decided to share it here, hoping some of you will find it useful too.

The extension is called "Build and Run" but it can do a bit more than that:

  • Compiling the code with a custom command
  • Running the code with the given (multiple) inputs specified as comments in the same source file
  • Comparing the program's outputs with expected outputs specified as comments
  • Formatting the code with a custom formatter
  • Building and running the code under the debugger

Unfortunately, interactive input or debugging isn't supported (and I don't have plans to implement that -- stick to the normal terminal for that).

Configuration is a bit involved but I think README contains a good starting point. The whole idea of the extension is to be fully customisable to have fun tuning it for yourself :)

Download link

It's well-tested on Linux. I haven't used it on Windows for a while, but I think it should still work.

example screenshot

Tags vscode extension, vscode

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English Gediminas 2024-11-10 19:10:57 0 (published)
en2 English Gediminas 2024-11-10 19:10:14 92
en1 English Gediminas 2024-11-10 19:02:17 1227 Initial revision (saved to drafts)