agrawal-d/cph

cant get testcases to local file

H-Multani opened this issue · 1 comments

as of now
i am having this problem in codechef
when i try the competitive companion to get testcases for a problem. it creates a new cpp file for each problem.and the new file is empty

in a local file on vscode i have a template for cpp already and currently for each question, i have to copy the template to the new file so that i can further solve question

i also cant just cut the testcase from the new file and paste to original local file.this is creating a lot of clutter in the folder(due to each of the various problem having a separate file) along with the hassle of copying the template to each new file

it would be better to have an option wherein when i use the competitive companion, it would just get the testcases and save it to the currently opened file in vscode instead of having to create a new file and save the testcases there.

please correct me if this is a feature already implemented and instruct me on how i can use it.
or please provide a possible solution to my problem

in a local file on vscode i have a template for cpp already and currently for each question, i have to copy the template to the new file so that i can further solve question

This is what you are looking for:

Screenshot 2024-06-16 at 11 06 38 PM


it would be better to have an option wherein when i use the competitive companion, it would just get the testcases and save it to the currently opened file in vscode instead of having to create a new file and save the testcases there.

No such option avaiable as of now, as it will create a new file which copies the file's api call data to .cph folder. Additionally, wouldn't this conflict with multiple questions when attempting live contest?