Development environment for programming contests administered by BOCA.
Eliminate the need to switch between applications.
Quickly assess code correctness.
Quickly rearrange editor for optimized navigation.
Note on compatibility: The extension is compatible with BOCA version 1.5.17 and it has been tested and found to work on Maratona Linux version 20231006, Ubuntu 22.04 and Window 11. It'll probably also work in any OS that's compatible with a recent version of VS Code. This section focus on Maratona Linux because it's the OS commonly used in programming competitions administered by BOCA. However, the instructions below can be adapted for any other compatible OS.
After installing Maratona Linux and set up its communication with the BOCA server (instructions here), reproduce the following steps:
- Log in with the user with administrative privileges — i.e. the user created at the Ubuntu install, before the Maratona Linux installation.
- Execute
sudo systemctl stop maratona-firewall.serviceto stop the firewall. - Execute
sudo apt update && sudo apt full-upgrade -yto update the system. - Execute
sudo apt install python3-pip && sudo -H -u icpc pip install --user pdfplumberto installpdfplumber(needed for the PDF test cases extraction functionality to work). - Execute
sudo apt install curl && curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - && sudo apt-get install -y nodejsto install Node v20 LTS from NodeSource. If getting errorFailed to run 'apt-get update'in thesetup_20.xscript execution, it may be due to wrong system time. - Download the
vscode-pdfandvscode-bocadeextension installers (.vsixfiles) from the VS Code Marketplace. - Execute
sudo cp Downloads/*.vsix /home/icpc/Downloadsto copy the downloaded files to inside theicpcuser'shomedirectory. - Execute
systemctl rebootto restart the system in order to reenable themaratona-firewall. - Log in with the
icpcuser. - Open VS Code and install both
.vsixfiles by running the commandExtensions: install from VSIXfrom the command palette.