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

CF Submitter

Sayan Roy

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

codesubmit

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, while also handling Cloudflare security checks with a dummy browser.


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.
  • Built-in dummy browser to handle Cloudflare captcha/security checks.
  • Option to open any question in your browser directly from the submission panel.

Example Workflow (v1)

  1. Login into Codeforces from your browser.
  2. Copy the XUser and XUserSha1 values from the browser (right click->inspect->application->cookies) and update them in VS Code(user details->update) (one-time setup).
  3. Open the dummy browser by clicking the Refresh Browser to refresh the Cloudflare captcha and close it (it is important to close the dummy browser).
  4. Update the contest ID in the contest details.
  5. Click on the FetchQuestions command.
  6. The list of all contest problems will appear. Click on any problem ID and start solving side by side.
  7. For submission:
    • Select the language.
    • Focus on your solution editor.
    • Click the Submit button.
  8. If any error or Cloudflare block occurs, first close the existing browser and then click Refresh Browser to refresh the dummy browser once and close it (important).
  9. To view a problem in your browser, click Show in the submission panel.

Requirements

  • A valid Codeforces account.
  • Google Chrome (or any Chromium-based browser) installed for the dummy browser.


Known Issues

  • Sometimes Cloudflare may block submissions. This can be fixed by first closing the existing browser and then reopening the dummy browser by clicking the Refresh Browser, refreshing once, and closing it(important).
  • If login tokens expire, you may need to re-copy your XUser and XUserSha1 values from Codeforces.

Release Notes

0.2.1

  • Initial release of codesubmit.
  • 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