I am developing a new extension for OpenCart using VSCode as IDE.
The root folder is the workspace folder, and I want only to change some files.
I set the .gitignore file to ignores all files except the files I want to work on.
This is my .gitignore
file
.htaccess.txt
config.php
php.ini
index.php
.vscode/*
#ignore all
*/*
Then I added my working files:
git add path/to/file.php -f
everything is ok. The problem is VSCode shows every file in the workspace.
I want to view only my working files. I tries this trick:
It is good but still not working very well, as I have to open each folder to let VSCode find those files.
Is there any way to let VSCode shows only the files included in git repo? VSCode highlights those files by the way.
Or at least is there any way to hide all files except specific files?
Thanks