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.service
to stop the firewall. - Execute
sudo apt update && sudo apt full-upgrade -y
to update the system. - Execute
sudo apt install python3-pip && sudo -H -u icpc pip install --user pdfplumber
to 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 nodejs
to install Node v20 LTS from NodeSource. If getting errorFailed to run 'apt-get update'
in thesetup_20.x
script execution, it may be due to wrong system time. - Download the
vscode-pdf
andvscode-bocade
extension installers (.vsix
files) from the VS Code Marketplace. - Execute
sudo cp Downloads/*.vsix /home/icpc/Downloads
to copy the downloaded files to inside theicpc
user'shome
directory. - Execute
systemctl reboot
to restart the system in order to reenable themaratona-firewall
. - Log in with the
icpc
user. - Open VS Code and install both
.vsix
files by running the commandExtensions: install from VSIX
from the command palette.