Gediminas's blog

By Gediminas, history, 4 days ago, In English

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

  • Vote: I like it
  • +13
  • Vote: I do not like it