Change UI Language
Now CP Editor is available in multiple languages, including English and Chinese.
You can change the UI language in Preferences->Appearance. Note that you need to restart CP Editor to apply the change.
Set Compile and Run Commands
You need to install
java depending on which language you are using. You need to add them to system PATH to have them found by CP Editor.
Then you can set the Compile and Run Commands in the preferences. For example, you can set C++ Commands in Preferences->Languages->C++->C++ Commands.
Setup CF Tool
In order to submit Codeforces problems in CP Editor, you need to install CF Tool.
You can add it to your system PATH to use it directly, or you can set the path to it in Preferences->Extensions->CF Tool.
You need to configure the tool by running the command
cf config in the command line before using it.
Setup Competitive Companion
Competitive Companion is used to parse problems/contests from online judges. After you install it, you can parse sample test cases by a single click, instead of copying them manually.
You can install it from the addon/extension markets:
Setup Clang Format
CP Editor uses Clang Format to format your C++ code.
You need to add it to your system PATH, or set the path to it at Preferences->Extensions->Clang Format.
Setup Language Server
You can use Language Server to lint your codes and get errors, warnings, etc.
Though you can use any language server program you like, here are some suggestions if you are not sure which to use.
If you have installed LLVM, you already have
clangd, because it comes with the clang compiler. If you haven’t, please install LLVM prebuild binaries for Windows. On Linux and macOS you can install it from your package manager. You need to set the start command of
clangd in Preferences -> Extensions -> Language Server -> C++ Server -> Path, where the command can be the path to the executable file or just
clangd if it’s in the PATH.
You need to have
java installed and added to
PATH. Download Eclipse.JDT.ls, extract it to any location (in a new directory), We call the path to that directory
<INSTALL_PATH> (Something like
C://Users/Myname/Desktop/EclipseJDT.ls/). In CP Editor, go to Preferences -> Extensions -> Language Server -> Java Server. Set “Path” to
java and set “Arguments” to something like
-jar $INSTALL_PATH/plugins/org.eclipse.equinox.launcher_1.5.200.v20180922-1751.jar -configuration <INSTALL_PATH>/config_(linux|win|mac). For example, on Windows, the arguments should be something like
The full name of the jar file above,
org.eclipse.equinox.launcher_1.5.200.v20180922-1751.jar, may change incrementally as the project version of JDT changes. If java complains about “jar not found”, then look for the latest version of the
org.eclipse.equinox.launcher_* jar in
<INSTALL_PATH>/plugins and replace it in the command after
You need to have
pip installed and added to
python-language-server pip module by running
pip install 'python-language-server[all]'. After the installation is done, open CP Editor settings, go to Preferences -> Extensions -> Language Server -> Python Server. Set “Path” to
python and set “Arguments” to
-m pyls. Save the changes and you will have linting for Python.
Was this page helpful?
Glad to hear it! You can tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.