I would like to split the Notepad++ window so that I can edit two files side by side.
How can I do this in Notepad++?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityIn Notepad++ 5.7 you can right-click on a tab and select "Move to Other View". You can also select "Clone to Other View" if you want to have the same file open more than once and see different parts of it. You can right-click the divider line and rotate the views to be either side-by-side or top-and-bottom.
Compare
plugin via Plugin Manager
. (I'm an 'old' Notepad++
'er.)
Sep 24, 2011 at 4:14
As mentioned in the comments, there's a very handy compare plugin for Notepad++, that allows side-by-side comparison, indicating discrepancies.
As well as moving or cloning the document to a separate view pane, you might want them to scroll together too, in a truly "side by side" manner. This makes it much easier to perform line-by-line comparison, for instance.
To achieve this, go to View
-> Synchronize Vertical Scrolling
(or Synchronize Horizontal Scrolling
).
This may be sufficient for many, without requiring the need for the Compare plugin others have mentioned.
I saw several people answered, but no one answered the way I do it.
All I do is I grab the tab I want to drag to the other view and I literally click, hold, and drag the tab off the tab bar.
You will see this (background dimmed for emphasis):
Now Release Your Mouse Cursor anywhere in the window and you will see a dialog window pop up.
When you do this, it opens up a small dialog which gives you the option to "Move to the other view" or "Clone to other view", as below (background dimmed for emphasis):
So now choose that, and voila, it pops over to the other view!
You can do this same thing to move tabs between views from left-to-right or right-to-left as well.
It is pretty straightforward, just go to: View → Move/Clone Current Document → Clone to Other View.
Source: http://aneeska.com/2010/06/09/how-to-add-split-view-to-notepad
You can even compare two files side by side (without changing the view) using COMPARE
plugin, as long as you have two files at the end of the tab. Here is an example.
The keyboard shortcut for comparing is ALT+D. To Clear comparison, CTRL+ALT+D.
I use this far too often to use anything other than a keyboard shortcut.
Settings -> Shortcut mapper -> line_146 -"Move to Other View". Click 'Modify' and create your own shortcut.
Mine is 'Alt' + Right (aka right arrow) shortcut mapper
To use it, select the tab you want to move to the other view and type your shortcut. To move it back to a single view again, type the same shortcut on that tab again.
To view docs side by side on Notepad ++ v7.5.6
Open both documents in Notepad ++, whichever document you are viewing:
All the replies above and the picture in the post before me, don't really answer it.
The picture shows it exactly though.
What (I think) the original poster initially wanted to know, was how to open 2 or more Notepad++ files next to each other. Without the requirement thay must "touch" each other.
As shown in the above picture, there is a greyed out option to move or clone to a new instance.
In the past I used to open it as User account, and next to that as Admin as a workaround.
The simple answer for the button being greyed-out, are having Unsaved Changes in the current Tab.
CTRL+S (save) the file, and then you can separate tabs into new windows like the old days again. Also you are able to drag a saved Tab into a new window as well.
EXAMPLE: File that has unsaved changes. Or is not saved at all
EXAMPLE: Saved file can be moved, or drag & dropped with mouse
EXAMPLE: Having multiple instances
Notepadd++ v8.4.8 (Dec 2022)