/cpeditor

The IDE for competitive programming :tada: | Fetch, Code, Compile, Run, Check, Submit :rocket:

Primary LanguageC++GNU General Public License v3.0GPL-3.0

CP Editor

CP Editor is a Qt-based, lightweight and cross-platform code editor specially designed for competitive programming.

It makes your competitive coding life easier 😁 by automating many things for you.

Features | Installation | Usage | Changelog | Contributing | FAQ | δΈ­ζ–‡ | Русский


All Contributors

Codacy Badge GitHub All Releases Slack Workspace Telegram Group Help wanted issues

type branch build downloads AUR
alpha master GitHub Workflow Status - AUR version
beta v6.5 GitHub Workflow Status Downloads -
stable v6.4 GitHub Workflow Status Downloads AUR version

Get Started

Contributing

Get help

  1. Read the manual and the FAQ first, also go through the menus and preferencecs to see if there are what you are looking for.
  2. Ask Google first if it's not very editor-related. (e.g. How to install Clang Format? What does this compilation error mean?)
  3. Search in the Issues and make sure your bug report/feature request is not duplicated.
  4. Please follow the issue template and provide detailed information, it will help us to give you better feedback.
  5. If it's a feature request or bug report rather than a question, please open an issue instead of asking on Telegram or Slack so that it can be tracked easier.

FAQ

  • I am using Java and the editor can't run my codes.
    • You have to use a non-public class for your solution, its name can be configured in Preferences->Language->Commands->Java Class Name.
  • I get DLL Missing error when launching the application?
  • How to use whole-application dark theme?
    • Now you can use whole-application dark theme on KDE, macOS and Windows 10. You need to set the system theme to dark theme, then CP Editor will use dark theme, too. However, on Windows 10, if you use the dark theme, you may need to restart the application after changing the theme of the code editor.
  • How to fetch testcases from the websites?
    • You have to install Competitive Companion on your browser, and use it on the website while CP Editor is running.
  • How to submit to CF inside the editor?
    • You have to either parse the problem from Competitive Companion, or set the problem URL in the right-click menu of the tabs. Then you'll see the submit button.
  • I am using it on Codeforces but the submit button is not clickable.
    • It's because the editor can't run the cf command. Please make sure it's in the PATH or set the path to it in the Preferences.
  • When I click the Submit button, I get some message saying template is required?
    • cf tool requires you to configure it before you use it. Please run cf config to set the username & password and add a template.
  • I got an invalid payload when parsing sample testcases?
    • Please try restarting the browser and the editor. It's known that there are few people always fail on this even after restarting, and Firefox is more stable than Google Chrome. We're really sorry if it always fails, you can change a browser as for now, we will try our best to investigate it.
  • How to enable error linting in the code editor?
    • You need to install a Language Server program and set the settings in Preferences -> Extensions -> Language Server. You can learn about more details here.

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Yufan You
🚧 πŸ’» πŸ“– 🌍 πŸ€” πŸ› πŸ‘€ πŸš‡

Ashar
🚧 πŸ’» πŸ“– πŸ€” πŸ› πŸ‘€ πŸš‡

liaohy
πŸ’» πŸ“– 🌍 πŸ€” πŸ‘€

Azer Sadykhzadeh
🌍

IZOBRETATEL777
🌍

Rajdeep Roy Chowdhury
πŸ’» πŸ€” πŸ›

queen bee shuttle
πŸ“– πŸ€” πŸ›

Yatharth Verma
πŸ’» πŸ›

polyomino
πŸ“–

Shuhao Zhang
πŸ€” πŸ‘€ 🌍

Vincent Bermel
πŸš‡

Tony Brown
πŸ€” πŸ’»

Sonu Lohani
πŸ› πŸ’» πŸ€”

Ravenclaw-OIer
πŸ€” πŸ› πŸ“–

tuwuna
πŸ€”

Nikhil Sarda
πŸ›

Arthur-QQ
πŸ€” πŸ›

Brijesh1in
πŸ€” πŸ›

DarkWarrior703
πŸ€”

v-O_O-v
πŸ›

Apoorva Raj Bhadani
πŸ›

Nguyα»…n HoΓ ng DΖ°Ζ‘ng
πŸ€”

Pat
πŸ€”

Ruzal Ibragimov
πŸ›

Salil Gokhale
πŸ€”

WYWFlash
πŸ›

nocriz
πŸ›

Wandoka
πŸ€”

A. H. M Fuad
πŸ›

Ankur Ojha
πŸ€”

cs-mshah
πŸ€”

Dmytro Fedoriaka
πŸ›

m3h3d1
πŸ€”

Al Arafat Tanin
πŸ€”

Siddharth Singh
πŸ€”

samael042
πŸ›

Starlit_Night
πŸ€”

Abishake
πŸ€”

sahil-ra
πŸ€”

lakshits11
πŸ€”

This project follows the all-contributors specification. Contributions of any kind welcome!

License

GNU General Public License Version 3.0