blueprint icon indicating copy to clipboard operation
blueprint copied to clipboard

proposal for "change workdir" feature

Open R3D9477 opened this issue 7 years ago • 3 comments

Hi. Is it possible to realize feature wich will change the current workdir to destination (after project's dircetory created from template)? (Analog of feature "Create Project's Directory" or "Create Subdirectory" in the most of IDEs)

For example, I have a template like a:

* __pascalCase_name__ <--Root project's folder
** ...  <--Project's files.
** ...
** ...

At that time users should to make root project directory and open it manually in the file explorer. Thanks.

R3D9477 avatar Nov 09 '18 10:11 R3D9477

Hmm... let me make sure I understand what you are asking for. When you create a a new folder/file you want VSCode to open that folder/file?

reesemclean avatar Nov 10 '18 01:11 reesemclean

@reesemclean I mean next situation:

  1. for example I have a some template for C application: selection_012 This template contains catalog .vscode and makefile
  2. and I have some directory with set of C-projects, named "MyProjects-C"
  3. I'm opening that directory via VSCode selection_006
  4. Than I want to add a new project in that directory from template via blueprint selection_011
  5. After this operation the directory with a new project was already created selection_007 But I can't to start working with that project immediately, because VSCode's current work directory still MyProjects-C
  6. I should open the destination project's directory manually selection_010

of course it is not difficult to do manually, but would be a bit comfortable:

  1. check if template is directory
  2. open the destination directory after template processed (change current work directory in VSCode)

(if VSCode allows this operation)

---upd hmm, Idea to open file (when template is a one file) could be useful, too. user should find the new file and open it manually after template was process.

it looks like a routine operation (and sometimes a complicated, when the destination directory contains a many data and files/folders with a similar names, for example)

R3D9477 avatar Nov 10 '18 11:11 R3D9477

@reesemclean for example, you can see templates from this collection :)

R3D9477 avatar Nov 13 '18 11:11 R3D9477