VS Code/PlatformIO actually makes that easier than the Arduino IDE. And, as a bonus, the specific version of a library that you use is tied to a single project and won't affect any others. Which is really important when you use a library that is dependent on a particular version of another library.