switching between help and code window - iphone

I just found out how to have help open and the code editor open at the same time from an answer to this question: Opening Xcode help file and application at the same time
In Windows, Alt+Tab switched me back and forth to my hearts content. Here, Alt tab bring up the next open application (happens to be Firefox in my case).
How do I switch between the Xcode window and the help window?

Cmd+` and Cmd+Shift+` will switch back and forth between windows within a Mac application.
You can also use F10 to see all of the application's windows in a zoomed out view and pick one to focus with the mouse or keyboard.

Related

Is there a way to open Chrome Dev tools to a new window right away?

Anyone know of a way to open Chrome Dev tools to a new window upon open?
I know that I can click F12 and then click the 'customize' button and change orientation or pop out the dev tools window. But that's an extra step, and often a window resize is necessary, and when you do it 50 times a day, it gets to be tedious.
Also, sometimes, on pages I'm testing, pressing F12 will change the layout of the elements on the page and even popping out the dev tools leaves the page layout different than before I opened dev tools. This can make it hard to tell if an element is visible or not, which makes troubleshooting Webdriver more difficult.
Ideally, CTRL+F12 or something to open dev tools as a separate window would be super handy. (to any Chromium devs that might be listening ;) But if anyone has another solution, I'd love to hear it.
If you have your DevTools un-docked, the dock mode, size and position of your DevTools window will remain the same as you previously set it. For example, I just set mine to be maximised on my other monitor. Every time I open up DevTools, it's an un-docked, maximised window, and there's no change to the layout of the inspected window other than the fact it's no longer in focus.
You could alternatively launch Chrome using the --auto-open-devtools-for-tabs flag, which will automatically open DevTools in the dock mode, size and position you had it previously. You can use:
Mac:/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --auto-open-devtools-for-tabs
Windows: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --auto-open-devtools-for-tabs
In WebDriver, you can set flags for how Chrome opens. However, after looking into this further, it turns out Chrome currently do not support multiple clients connected to the protocol simultaneously.
As for speeding things up, you can switch between dock positions with Cmd+Shift+D (Mac) or Ctrl+Shift+D (Windows). This toggles between the last two modes you have used, so say you have it docked at the bottom, you then pop it out, using the shortcut now will toggle between the two.
Here's how you do it. On opening the developer tools, with the developer tools window in focus, press F1. This will open a settings page. Check the "Auto-open DevTools for popups".
Originally documented here -- https://newbedev.com/automatically-open-chrome-developer-tools-when-new-tab-new-window-is-opened.

Eclipse Find/Replace not working

I have searched for a solution to my problem but with no avail. The eclipse Find/Replace function found by the hotkey ctrl+F is not working. Note: the function does not work by the hotkey neither by going through Eclipse menu Edit>Find Replace (not working I mean that the FindReplace window does not show at all, the eclipse window loses focus only). I have tried to disable the hotkey to see if it would work, restarted eclipsed, restarted the PC, but nothing seems to solve the problem. It was working just fine but then suddenly out of the blue it just decided not to function anymore. Everything I tried so far has failed. As I use this function often it would be nice to know if someone has another input for trying to solve this bug. I am on a PC with windows 7, intel i7 64-bits.
I had a similar issue after using second monitor at work. At home I was wondering where is my Find/Replace window... it was displayed at the second monitor as I used it last time... Eclipse stores the last location of the dialogs for better UX.
So try to move the Find/Replace window by using your keyboard.
How to Move an Open Window with the Keyboard
You can also try to reset perspective
Window > Perspective > Reset Perspective...
I had the same issue with Eclipse. My current version is Neon.3 Release (4.6.3).
This periodically happens where the Find/Replace does not work.
Usually UNDO stops working also.
When this happens, Ctrl+F, Ctrl+Z do not work, and Undo Text Change and Find/Replace... are grayed out in the menu.
I tried the above solution Window > Perspective > Reset Perspective...
That fixed it right away!
Thanks
When your Eclipse are full with cache that time this problem occurs.
please try to reset perspective setting and then check it.
Just go to menu bar : Window -> Perspective -> Reset Perspective and it will done.

Keyboard shortcut to switch focus from web developer tools to page in Chrome on Mac

This question is directly related to following existing question with different tag:
Keyboard shortcut to switch focus from web developer tools to page in Chrome
As stated in the title, is there anyway we can switch focus from web developer tools to page in Chrome on Mac OSX.
I looked up online, and at Chrome Dev. doc and help forum, nothing there but they pointed to SO for an answer. Here are some links regarding this question, I already found useless:
https://developers.google.com/chrome-developer-tools/docs/shortcuts
https://groups.google.com/forum/?fromgroups#!topic/google-chrome-developer-tools
Press F6 three times. To go back to DevTools press F6 one time.
F6 loop the focus in this order:
Page
DevTools(if DevTools is open)
Address bar
Bookmarks
You can move focus to the address bar with "Cmd + L". If you put javascript: in the address bar and hit the enter key, you can switch the focus to the page.
But javascript: is too long, isn't it? Then follow this.
Go to Chrome Settings page (Cmd + ,)
Click "Manage search engines..." in the Search section
Add a new search engine with
any name e.g. Back to page
any keyword e.g. j
URL - javascript:
Now you can move focus to the page only with j.
If you've un-docked dev-tools, on a Mac use Cmd+` (backtick) to move focus to active or next window.
This keyboard shortcut can be found and customized at:
System preferences -> Keyboard -> Shortcuts -> Select "Keyboard" category
I've had this exact same use case, and I'm surprised there isn't a simple shortcut for it. I've done some research, and it seems there are a few options:
Use command + option + J to toggle the console off. This will bring focus back to the web page. Then, hitting command + option + J again will open the console and direct the focus there once again. This is probably not the best way since there is a little bit of on each toggle.
Open Dev Tools in separate window. You can find this by clicking the three dots in the top right corner of the dev tools, and then you can find a button for undocking the tools into a separate window. Then, to toggle focus between the web page and console, you can hit command + `.
The answer above from #Sangdol is a great solution for switching focus from the console to the web page. This is probably the fastest and best way of doing this once it's set up. The only thing I'd like to add is how to switch focus back to the console. For this, you can hit command + shift + C twice (hitting it only one will successfully switch the focus, but will leave the browser in 'Inspect Element' mode). I've found that if the focus on the webpage is in a text box, you may have to hit Esc first before hitting command + shift + C.
Press ⌘+L to go to address bar.
Press Esc.
You have now switched focus from web developer tools to page.
To switch back press focus back press ⌘+⌥+C.
This works for docked but is best for undocked dev tools and multiple windows/tabs.
 
With devtools focused hit ⌘+Shift+P
start typing in Debuggee
Hit enter when you see Focus debuggee, done! 
 
Then to go back to dev tools just hit ⌘+⌥+J to focus back on the tab you left them.
 
It saves me some time everyday - my tabs can grow on me over the day... or days... weeks - pretty sure you've all been there - R&D!
New Update: In chrome Version 92.0.4515.131.
When DevTools is open and focus.
Press (⌘ Command+⌥ Option+↓ Down) Twice.
First time pressed - the focus will transfer to the URL.
The second time pressed - the focus will transfer to the page.
OS X 10.8.3 - Mountain Lion
customize "Move focus to next window in application" short cut, because the default key map is "Command + F1", which is binded to show "Shortcuts for Developer Tools" on chrome.
Update in chrome 107
You can now customize keyboard shortcuts for commands in DevTools.
Go to DevTools Settings > Shortcuts > set shortcut for "Focus debuggee".
Hitting ⌘+⌥+J twice will hide the dev tools and focus on your actual window. Do you want to focus on window without hiding dev tools?

Switching between Editor and Logcat via shortcut not working properly

pressing CTRL+F7 in Eclipse 3.7.2 gives me a small dialog to switch between views. (as ALT+TAB for system windows)
Most of my views are docked as "fast views" to keep my workspace clean.
Jumping between all views including logcat works perfect, but not between logcat and the editor, here nothing happens
The depreceated logcat view works as it should.
Clicking the small icon on the bottom shows logcat, but shortcut does not work.
Anyone has that problem too and has a solution for it? It's pain in the a** to use the mouse to open logcat all the time.
Thanks for your answers.
Thanks for the shortcut.
On windows, I can switch between the 'Log Cat' and the 'Editor' by pressing ctrl+f7.
To navigate to some other window perspective, use the keyboard without lifting the ctrl button.
It's a bug. Logcat just blinks on the screen and leaves. You can use the change view shortcut to go to another view like Console or Problems and from there you can switch normally to logcat. It's an annoyance but it beats reaching all the way to the mouse any day of the year

Eclipse/Win7 - Scrolling in Content Assist with mouse without focus

Recently switched from Linux to Windows for development in Eclipse Indigo SR1. In Linux, if I Ctrl-Space'd to open a Content Assist window, I could immediately start scrolling with the mouse wheel (with the cursor over the Content Assist window of course).
Now, in Windows 7, if I try to scroll in the same way the Content Assist window goes away, and whatever editor I have open is scrolled instead.
If I first press Tab to give focus to the Content Assist window, the mouse wheel scrolling works as expected, but I'd much rather it behaved as it did for me on Linux, rather than retrain myself to press Tab every time.
Is there a way to make the mouse work this way with Eclipse?
Found an answer that appears to work. It's a little dated but seems to still do the trick.
http://divby0.blogspot.com/2007/04/focus-follows-mouse.html
Dropped this jar in the eclipse plugins folder and restarted. At first I thought it didn't work, but later I noticed there is a little X button added to your toolbar that you need to toggle. Scrolling seems to work properly now.