110

I want to view the same file side-by-side. How do I open up two (or more) tabs for a single file?

apaderno
  • 28,547
  • 16
  • 75
  • 90
Frank T
  • 8,268
  • 8
  • 50
  • 67

5 Answers5

205

File | New View into File will open a second tab for the same file. This can be moved into another window or tab group.

Richard
  • 106,783
  • 21
  • 203
  • 265
34
  • Go into the pane you want to see the file in.
  • Type Ctrl-p (Mac: -p) to get the list of files available.
  • Select the one you're after and it will be loaded into the current pane

(Even if it's already open in another pane.)

Dave Newton
  • 158,873
  • 26
  • 254
  • 302
MrFrAk
  • 349
  • 3
  • 2
16
  1. go to view > layout > Columns:2

  2. go to File > New View Into File

  3. then drag new Tab into new Column

Ali Bahadorani
  • 193
  • 1
  • 9
2

Multiple tabs or Columns? The first is with File -> New File , the second with View -> Layout -> Columns.

MaicolBen
  • 840
  • 1
  • 6
  • 20
1

For side by side view in mac:

⌥ + ⌘ + 2 to split window (another group)

select the tab you want to move to another group (group 2)

⌃ + ⇧ + 2 move selected tab to group 2

like this you can split you window in to 4 columns, 2 rows and a grid

Shashank Jain
  • 559
  • 7
  • 9
  • This answers a different question; the issue is getting the same file into two of those panes. – Dave Newton Dec 15 '14 at 20:07
  • I think what i've explains does the same thing for which this question has been asked. Just try out – Shashank Jain Jan 13 '15 at 12:14
  • For me it moves the current file into the new tab, it doesn't duplicate the file in the new tab. That's different than what's being asked; compare your answer to the accepted one. I didn't downvote, but I'm pretty sure this doesn't open the same file in two panes. – Dave Newton Jan 13 '15 at 14:55
  • 1
    This works and answers the question, but you do need to have your target file opened twice. That can be accomplished with `File > New View` starting from the file you want split. Then you'll have the file in a 2nd tab to follow step two above. – Kilpatrick Jun 27 '16 at 13:24