A VSCode extension that enables users to view and solve Codeforces problems within VS Code.
See Issue #25 in this repo.
This error happens because Codeforces recently added stricter bot protection (through Cloudflare possibly based on the feedback of
response.data
), and it can block or return 403 when automated tools (like this extension) try to fetch problem statements. Similar related issues have been discussed in xalanq/cf-tool Issue #176 and xalanq/cf-tool Issue #179. Unfortunately, there is currently no direct fix or workaround.
Setting Name | Description | Default Value |
---|---|---|
CPcodeforces.userHandle |
The last valid Codeforces user handle entered. | "" |
CPcodeforces.defaultSolutionsFolderPath |
The absolute path for saving solutions. (Leave blank to use the default home path.) | "" |
CPcodeforces.notifyPreferredLanguage |
Notify if the preferred coding language is not set. | true |
CPcodeforces.preferredCodingLanguage |
Preferred coding language for problem solutions. Supported languages: C , C# , C++ , D , Go , Haskell , Java , JavaScript , Kotlin , OCaml , Pascal , Perl , PHP , Python3 , Ruby , Rust , Scala |
"" |
CPcodeforces.notifySolutionTemplate |
Notify if the solution template is not set. | true |
CPcodeforces.solutionTemplate |
Template code for the solution file of the preferred language. | "" |
CPcodeforces.sortOrder |
Sort order for the All problems list. Supported options: "None" , "RatingAsc" , "RatingDesc |
"None" |
CPcodeforces.difficultySortOrder |
Sort order for the Difficulty folders list. Supported options: "RatingAsc" , "RatingDesc" |
"RatingAsc" |
Refer to CHANGELOG
The codeforces-icon used in this repository are from the LibreICONS by Dennis Suitters, and are licensed under the MIT License.
MIT License