Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Be able to select the folder to save new coding file (.cpp, .py,...) and their sample testcases #493

Open
ducminh25 opened this issue Oct 9, 2024 · 3 comments

Comments

@ducminh25
Copy link

I feel annoyed when the new problems/contests I saved from Codeforces (and other coding web) are automatically saved to the Workspace folder, while I want them to be saved in a different one (still inside the Workspace, but not the main folder one).
To illustrate, the folder that I opened in the Workspace is "D:\Code". However, I wanna save the problems/contests in the "D:\Code\contests".

Extension Version: 5.9.2 (v2024.7.1722430096)

VS Code Version: (idk, sorry. However, it is the newest at this moment)

Browser Version: Microsoft Edge - version 130.0.2849.27 (Official build) stable app, beta channel (64-bit)

Operating System: Windows 11 Pro 23H2, OS build 22635.4300, 64-bit operating system, x64-based processor

@dsogari
Copy link

dsogari commented Oct 11, 2024

Same here. I tried changing the srcPath property in the problem file in .cph folder, but to no avail.

It'd be nice to be able to specify the target path with some sort of "template" syntax, e.g.:

${workspaceFolder}/path/to/${problemId}.cc

Where problemId is a variable provided by the extension. There could be others, like contestId, judgeId, etc.

An alternative would be to provide a command to change the target folder during a session.

@tr1ten
Copy link

tr1ten commented Nov 1, 2024

+1
Similar to what cp editor provides

@kuben-joz
Copy link

As a workaround you can add the subfolder folder you want to store the files in as a new folder in the workspace and drag it to the top above the root folder (or just remove the root folder from the workspace).

As an exmaple let's say your workspace structure is:

  • atcoder
    • ARC
      • 170

You can add the contest folder to the workspace:

  • atcoder
    • ARC
      • 170
  • 170

And then with your mouse move it to the top (vs code will ask for confirmation):

  • 170
  • atcoder
    • ARC
      • 170

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants