I have the following folder structure..where _app, and _infra are two different projects. At the root of the workspace however are two files, the workspace project file itself and a .gitignore file. Each project has it's own .vscode folder and own .env files. The entire workspace is a single repository in git.
my_app_workspace
- proj1_app/
- .venv/ (virtual environment)
- vscode/
- settings.json
- launch.json
- task.json
- src/
- config.py
- .env
- .env_linux
- proj1_infra/
- vscode/
- settings.json
- launch.json
- task.json
- src/
- config.py
- .env
- .env_linux
- .git_ignore
- my_app_workspace.code-workspace
the code-workspace file looks like this:
{
"folders": [
{
"path": "./proj1_app"
},
{
"path": "./proj1_infra"
}
],
}
This is all good, but i want to include the .git_ignore and my_app_workspace.code-workspace files also into the vscode editor so that i can easy make modifications to them. I know i can add another folder with '"path": "."', but this will add a folder with the project folders again - which seems redundant and not efficient.
Is there a way to add individual files to the workspace? Is the problem here i should simply split these up into two different repository in git? this way each has it's own .gitignore file as opposed to what im doing now is the entire workspace is a git repository
from VSCode multi-project workspace: how to add individual files such as the .gitignore at the root of the workspace?
No comments:
Post a Comment