In the IDE, install package Project-Groups. That allows to easily switch between projects. (and you can also add package, that you need to open often).
Then it depends, do you have different project (lpi) for each of your work items? Or do you have one project, and change (copy outside the IDE) units on disk?
Ideally, any unit that may be part of more than one project => move to a package (or have several packages).
If absolutely needed, for small changes within a unit, you can use IFDEF. But may better use patterns like "dependency injection".
For all else, use GIT (you do not need an account on any online git provider / it works all local).
If you do need several slightly different versions of the same unit => you can use branches in git, to keep each versions. Between the branches you can merge and/or cherry-pick. So new code can be added to all branches.
It also means, you can roll back if you made an error. You still have access to all older versions of the file.
(You can even make a commit every 5 to 10 minutes while working, and when all is done combine those few dozen commits into a single commit to keep for long time history.
Git also helps synchronizing.
You can synchronize several folders on one machine. And synchronize between several machines.
- Any git repo can have any other folder on your PC as "remote" => so you can push and pull between folders.
- A git repo (one single one) can have several "worktree"s, very similar to the above but no push/pull needed.
And you can have other computers push/pull. Either via shared folders, or by running "git daemon" and allow network access.
And you can backup your repo to a private github/lab/... repo.
(Any git repo can have many remotes)
Depending on what you need, more details on request.