Member-only story
Using Workspaces in Visual Studio Code
Visual Studio Code (VSCode from now on) is my go-to tool for code editing. One of my favourite features is the use of Workspaces.
A Workspace is a collection of one ore more folders with code. How do you create a Workspace ? The Workspace operations are under the File menu. Easiest is to add some folders to the Workspace. When you do this on a higher level (for instance the folder containing all you GIT repo’s), all subfolders are automatically added to the Workspace.
Here you see the GIT symbol on the left hand menu, having added several folders and recognized 16 GIT repo’s inside with 38 pending changes.
This is where for me the first advantage shows up: being able to search in all code in the Workspace folders.
On the other hand, 20000 results in 2644 files is not very useful. Therefore, organising folders into multiple Workspaces is recommended.
The second thing I use a lot is to find files based on filenames: