Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open the same file multiple times

Tags:

sublimetext

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

like image 456
Frank T Avatar asked Feb 24 '14 15:02

Frank T


People also ask

Can I open the same file twice?

In Word, it is possible to open the same file twice, so that the same document appears in two Windows. This is very helpful when you need to reference one part of the document while you are working on another part of the document elsewhere in the file.

How do I open the same file twice in Windows 10?

First, open the application you want to run in multiple instances. Then, hold down the Shift key on your keyboard and click with your cursor - or tap with your finger - on its taskbar icon. One click or tap opens a new instance, two clicks or taps open two, and so on.

What happens if you open a file twice?

In fact, in this case, when you call open() twice on the same file, you get two different file descriptors pointing to the same file (same physical file).

Can you open a file multiple times in C?

Yes, but why didn't you just try it? (Might actually be OS dependent.) If you want multiple offsets within the file to read, mmap() may be an option too, depending on your OS. Then you can just index into the file using memory addresses.


2 Answers

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

like image 118
Richard Avatar answered Sep 19 '22 17:09

Richard


  • 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.)

like image 25
MrFrAk Avatar answered Sep 19 '22 17:09

MrFrAk