Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>CF SubmitterNew to Visual Studio Code? Get it now.
CF Submitter

CF Submitter

DevXSayan

|
85 installs
| (0) | Free
an extension to show and submit the contest question directly to codeforces
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

CF Submitter

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. Step

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)

  1. Login to Codeforces in your regular browser (tick Remember me for a month).

  2. 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).

    Step

  3. Refresh Cloudflare:

    • Click Refresh Browser to open the dummy browser (don't sign in).
    • Solve the captcha if needed.
    • Close the dummy browser (important).
  4. 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).

  5. Run FetchQuestions.

  6. A list of problems will appear. Click any problem ID and start solving in VS Code.

  7. Submit a solution:

    • Select your programming language.
    • Keep your solution editor in focus.
    • Click Submit.
  8. ⚠️ 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).
  9. To view a problem in your browser, click Show in the submission panel.

  10. 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.
  • Tutorial: Tutorial

⚠️ Known Issues

  • 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

Installation

  • Download the Chrome extension here
  • Open Chrome and go to chrome://extensions/.
  • Enable Developer mode (top-right corner).
  • Click Load unpacked and select the downloaded extension folder.
  • Open VS Code, open any question on codeforces, click the extension icon in Chrome — and you’re ready to go! 🎉

Step

  • Tutorial: Tutorial

Requirements

  • A valid Codeforces account.
  • Google Chrome installed for the dummy browser.

📬 Support & Contact

  • 📧 Email: sayanroy2802@gmail.com
  • 💬 Whatsapp: 9775939480

Release Notes

0.0.1

  • Initial release of CF Submitter.
  • Added authentication via browser cookies.
  • Added FetchQuestions command.
  • Added problem view and submission from editor.
  • Implemented dummy browser for Cloudflare handling.

Following Extension Guidelines

Ensure that you follow the official VS Code Extension Guidelines when maintaining and updating this extension.


Working with Markdown

  • Split the editor (Cmd+\ on macOS or Ctrl+\ on Windows/Linux).
  • Toggle preview (Shift+Cmd+V on macOS or Shift+Ctrl+V on Windows/Linux).
  • Use Ctrl+Space for Markdown snippet suggestions.

More Information

  • VS Code Markdown Support
  • Markdown Syntax Reference

✨ Enjoy using CF Submitter!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft