CF Submitter is a VS Code extension that allows you to fetch Codeforces real time contest problems, solve them inside the editor, and submit solutions directly.
For Windows + Chrome installed ( C:\Program Files\Google\Chrome\Application\chrome.exe )
For Mac + Chrome installed (/Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
Features
Fetch all questions from a given contest with one command.
View the entire list of questions in the sidebar.
Click on a problem ID to open it and start solving side by side.
Submit solutions directly from VS Code after selecting a language.
Also open any question from your browser to vscode with just one click with a chrome extension, view it inside vscode, solve and submit it from vscode
Option to open any question in your browser directly from the submission panel.
Example Workflow (v1)
Login to Codeforces in your regular browser (tick Remember me for a month).
Copy your cookies (XUser and XUserSha1) from Right Click → Inspect → Application → Cookies.
Update these in VS Code under User Details → XUser → XUserSha1 (one-time setup).
Refresh Cloudflare:
Click Refresh Browser to open the dummy browser (don't sign in).
Solve the captcha if needed.
Close the dummy browser (important).
Set Contest ID in contest detail (see the contest url, not the contest name, eg. "https://codeforces.com/contest/1793/problem/C", here contest id is 1793).
Run FetchQuestions.
A list of problems will appear. Click any problem ID and start solving in VS Code.
Submit a solution:
Select your programming language.
Keep your solution editor in focus.
Click Submit.
⚠️ If you face errors / Cloudflare block:
Close the existing automated dummy browser.
Click Refresh Browser again, solve the captcha if needed. then close it (important).
To view a problem in your browser, click Show in the submission panel.
Whether you are fetching or submitting problems, an automated Chrome browser instance will always open so you can see the process.
👉 If the browser does not open:
Close all other running instances of Chrome and try again.
If the issue still persists, please raise an issue and contact us via email with a screenshot.
Cloudflare Block:
Occasionally, Cloudflare may block submissions. Fix: Close the existing dummy browser(where automated submission/fetching were going on) → click Refresh Browser → solve the captcha if needed. → then close it again (important!). Tutorial
Login Token Expiry:
If your session expires, re-copy your XUser and XUserSha1 cookies from Codeforces and update them in VS Code.
Cookies XUser not visible
If XUser cookies is not visible, then log out and then again login with ticking Remember me for a month.
🚀 What’s New (v1.1.0)
Connect Chrome extension to fetch problems on vscode directly from codeforces