How can I edit the same file in two windows?
Hi.
I'm semi new to coding and I like having two windows side by side. One that I'm working on, the other with other files for reference.
I've reached a point where I'm jumping between files a lot and my files have gotten long enough that what I want to reference isn't in another file, but the code above.
I've been using Micro, opening multiple tabs for what I'm working on on one side and opening reference files on the other.
What I'd really like to do is just open all of my files (as tabs) at once one in both windows and freely move between them.
However, I find it annoying needing to reload files all the time.
Is there an editor that will sync multiple windows?
I might move to vim or emacs if there's a simple solution there. But I prefer Micro and Helix. (Helix doesn't even seem to let me reload a file)
Am I dumb and there's a better way instead of tabs to quickly switch between files? Should I use splits and not separate windows for side-by-side viewing?
Thanks for any tips!
EDIT: Thanks! I am now enlightened by splits! I always figured why learn another binding when my window manager can handle it. Now I understand! Thank you!
(Micro is real dumb with splits though. Helix is wonderful.)