Is it possible to change a projects's rootPath in the projects.json file ... #751
-
... and retain the current state of the workspace, i.e. open editor tabs/files? For example, I tried changing ...
... also changing the directory name from CEC to CEC-w2g in explorer, but when I closed and reopened VS Code it resulted in CEC-w2g workspace being empty. Is it possible to achieve this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @fade2gray , Changing the But, changing the Hope this helps |
Beta Was this translation helpful? Give feedback.
Hi @fade2gray ,
Changing the
rootPath
attribute inpackage.json
is totally possible. In fact, I not only create new entries, but also update those entries from time to time, when projects are moved in explorer. And the Project List on both, the Side Bar and Command Palette will be updated as well, a few seconds after savingprojects.json
file.But, changing the
rootPath
attribute won't make the folder/file be moved/renamed automatically in the explorer.Hope this helps