3

I like having my IDE on left screen and browser on the right one. Whenever I want to refresh page in the browser, I need to move hand from keyboard to mouse. In my previous setup on Fedora I was able to setup a keyboard shortcuts ctrl+1 and ctrl+2 to focus on the topmost window of appropriate monitor. I feel like this is a very basic task, but I didn't find any solutions. I even read this question:

Keyboard shorcut to switch focus between multiple displays on OS X 10.9.5 + (mavericks, el capitan, sierra)

but it proposes a workaround instead of an actual keyboard shortcut to switch focus. Is there any solution? I am able to buy an app from AppStore if there is one for this purpose, but I would like to avoid non-AppStore apps.

3

You can switch Applications by using ⌘ command+tab. Tabbing through the list of applications can be done by holding the ⌘ command key and continually hitting tab. This will automatically shift focus to the selected app no matter which screen or monitor on which it resides.

Therefore, swapping between IDE and browser is easily done without mapping new shortcuts.

The keyboard command for refreshing the browser is generally ⌘ command+R.

You can switch Windows of the same app by using ⌘ command+~.

  • I missed the fact that command+tab stack is reordered everytime I use it; okay this is a fair substitute – siergiej Aug 20 '15 at 2:43
  • 1
    Yes, that works in many cases, but sometimes you may not have any apps on a screen, or switch to an app in another desktop on the other screen (so you'd have to switch to the current app on that screen then e.g. ctrl-right-arrow). Is there another way?? – drevicko Dec 10 '15 at 12:27
  • I have two windows of the same app, open on separate screens. I only get one instance of that app with cmd-tab, so I can't switch to the other screen, only the most recently focused instance. I want to switch to the other screen, to whichever window is visible there. – Mnebuerquo Jul 22 '16 at 12:15
  • Use Command + ~ to switch between windows of the same app when app is in focus. – bjbk Jul 22 '16 at 12:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .