My extension for running/testing solutions in VS Code

Правка en3, от Gediminas, 2024-11-10 19:10:57

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

Теги vscode extension, vscode

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский Gediminas 2024-11-10 19:10:57 0 (published)
en2 Английский Gediminas 2024-11-10 19:10:14 92
en1 Английский Gediminas 2024-11-10 19:02:17 1227 Initial revision (saved to drafts)