[SOLVED] Sourse Editor (2) lazarus / 9-Editor ---------------------------------------------------------------------- WickedDum · 2015-01-27 20:38 When I open Lazarus by clicking on an .lpi file, why does a "Source Editor (2)" window pop up on occasion? ---------------------------------------------------------------------- Martin_fr · 2015-01-27 21:18 Not sure what exactly happens for you. But here si what should happen. You can open the same unit/file in several (synchronized) editors. If you do this and close the project with more than one editor open, then this is sawed to the session. If you open a project that has such a session (a project you saved, or maybe a project some one else saved), then this is restored. ---------------------------------------------------------------------- WickedDum · 2015-01-27 21:35 Thanks, Martin. I know that if I open several files, they will be visible as tabs across the top of the editor window. I didn't know I could open several editors.  I'll watch out for that. Thanks, again! ---------------------------------------------------------------------- Martin_fr · 2015-01-28 01:10 Right click any of the tabs there are 2 entries: "Move to new window" "Clone to new window" The 2nd means that the file will be open in 2 (or more) editors at the same time. Changes made in any one editor will appear in all open copies. You can also assign this to key shortcuts. Once a 2nd window is open, tabs can be dragged and dropped. ---------------------------------------------------------------------- WickedDum · 2015-01-28 08:36 Thanks for the info. It brings to mind a question, though:  Why would you open more editor windows if changes that you make in one are visible in all of the other open copies? ---------------------------------------------------------------------- howardpc · 2015-01-28 09:47 There are doubtless many reasons. One is so that you can have part of the unit source (say a complex class declaration) always visible for reference without having to scroll to and fro in the editor where you are currently writing. ---------------------------------------------------------------------- Martin_fr · 2015-01-28 11:07 Firs of all, changes must be in all, otherwise, if I modified one part in the 1sh window, and another part in the 2nd window, then when I save each of them the 2nd save overwrites changes from the 1st. Why would I open several windows? So I can scroll them to different locations. If I work on big files, then I often need to see several locations in the same file. This also applies to seeing 2 different files side by side. ---------------------------------------------------------------------- WickedDum · 2015-01-28 16:41 Fair enough! Thank you, gentlemen!