I am using emacs I find that sometimes I have 2 files separated into 2 windows.
For example: I open 1 file using C-x C-f file1.c RET
and I split t
If you are using Prelude you can just use C-c s (prelude-swap-windows). From the Prelude documentation:
C-c s
prelude-swap-windows
C-c s runs the command crux-swap-windows (found in prelude-mode-map), which is an alias for crux-transpose-windows in crux.el.
crux-swap-windows
prelude-mode-map
crux-transpose-windows