After I add some unit in Code edit window of laz1.lpi then close laz1.lpi and open laz2.lpi, this unit will appear in code edit window of laz2.lpi too. Same with delete some unit from laz1.lpi or from laz2.lpi.
The real names of laz1.lpi and laz2.lpi are the same.
Is this about units OPEN in the EDITOR window?
Because that differs from "ADDED to PROJECT".
Did you actually test, if the IDE modifies the lpi in the "other" directory?
- Backup both lpi- work on one project- save and close.- use a diff tool to see if the other lpi was modified.
The windows open in the editor, are stored in the session (and you can open files, that do NOT belong to the project, yet will be remembered).The session can be stored either:- as part of the lpi- as lps file in the project folder- as lps file in the global lazarus conf dir (primary config path)And in the last case, if both projects have the same name, that will mean they share a session.
lps file in the global lazarus conf dir (primary config path)
Go to menu: Project > Project Optionsthen page: Project Options > SessionAnd it will show where your session goes.
Off topic / but about copying projectsMost of the time coping the folder will work.A better way to get a clean copy, is using "Publish project" from the menu.