This project is a combination of a Chrome extension and a VS Code extension that allows you to scrape a problem from Codeforces and view it directly in your VS Code editor.
- Scrapes the entire problem statement from any Codeforces problem page.
- Displays the problem in a VS Code webview.
- Real-time communication between the Chrome extension, a local server, and the VS Code extension using WebSockets.
- The Chrome Extension scrapes the problem statement from the active Codeforces problem page.
- The scraped HTML content is sent to a local WebSocket server.
- The VS Code Extension connects to the WebSocket server, receives the problem data, and displays it in a webview.
- Clone the repository.
- Open Chrome and navigate to
chrome://extensions/. - Enable "Developer mode".
- Click on "Load unpacked" and select the
chrome-extensiondirectory.
- Navigate to the
codefortress-chrome-serverdirectory. - Run
npm installto install the dependencies. - Run
npm startto start the server.
- Navigate to the
vscode-extensiondirectory. - Run
npm install. - Open the
vscode-extensiondirectory in VS Code. - Press
F5to start a new VS Code instance with the extension loaded.
- Make sure the local server is running.
- Open a Codeforces problem page in Chrome.
- Click on the CodeFortress extension icon in the Chrome toolbar.
- Open VS Code and run the "Show Codeforces Problem" command from the command palette.
dotenv
wsnodemon(devDependencies)
@headlessui/react@tailwindcss/vitedotenvreactreact-domtailwindcssws@eslint/js(devDependencies)@types/react(devDependencies)@types/react-dom(devDependencies)@vitejs/plugin-react(devDependencies)eslint(devDependencies)eslint-plugin-react-hooks(devDependencies)eslint-plugin-react-refresh(devDependencies)globals(devDependencies)vite(devDependencies)webpack(devDependencies)webpack-cli(devDependencies)