Podgląd w wielu oknach - Notepad++

You can enable a secondary edit window in Notepad++ to be able to View two documents at the same time (possibly the same). If used with the same document, you can quickly compare two documents or make quick changes in two places at the same time without having to scroll or keep bookmarks.

To use Multi View, first activate the document that you want to View in the other View. Then, you have two options:
Select Widok->Move/Clone current document->Go to another View, this will move the document to the other View, closing it in the first View.

Select Widok->Move/Clone current document->Clone to another View, this will clone the document into the other View, linking the two. Any change in the first document will automatically be forwarded to the second and vice versa. You can also reach these command by right-clicking on the tab of a document and selecting the command from the context menu.
Note that these options are also available by dragging a tab into an edit field, with the Ctrl depressed for cloning and not depressed for moving

Once you have Multi View enabled, you can control its layout. You can drag the divider around using your mouse, or click on the small arrows on the top and bottom to completely move it to the left or right. Rightclicking on the divider shows a popup menu allowing you to rotate the layout for a horizontal or vertical version.

Although you can View two documents at the same time, only one can be active (have the focus). You can determine the active View by the tabbar if you have the topline enabled (see Tab bar). By default, the active View has a darker color of orange than the inactive View. Also, only the active View can have the caret. You can switch the active View by selecting Widok->Focus on other View. The active View determines what options are available from the menu or toolbar. If the main View has all documents saved, but the secondary View has modified tabs, you can only select the Save option if the secondary View is active.

If you have the same document open in two Views, they will share some properties, but some of them can be modified independently. These include:

 

  • Folding (but not line hiding).
  • Zoom level;
  • Scroll position;
  • Cursor position;
  • RTL modus (see RTL)
  • Line wrap modus
  • Overtype mode
  • Nonprintable characters rendering

If you open a new document or a file, it will do so in the currently active View. Additionally, closing the last document of a View will close that View if two Views are visible (including moving the last document of one View to the other).

To ease document comparison/navigation, you can enable scroll locking in Multi View. When a lock is enabled, scrolling one View will automatically scroll the other. The lock will attempt to keep the current offset. This means if one View is scrolled 5 lines lower than the other, the vertical scroll lock will keep this distance unless this is not possible anymore. Is soon as it is possible it will retain the offset again.

To enable horizontal scroll locking, select Widok->Synchronize Horizontal Scrolling lub naciśnij the  button.

To enable vertical scroll locking, select Widok->Synchronize Vertical Scrolling lub naciśnij the  button.