I do this, but with a second monitor and second machine, and then we use git to synchronize our work
With VS Code and IntelliJ you can even do it in the same documents at the same time