Location of Global Shortcuts in OS X - xcode

Xcode 4' default shortcut for FindTab is Cmd+3 and the default shortcut for Issue Navigator is Cmd+4.
My problem is that Cmd+1 and Cmd+2 work fine, but Cmd+3 and Cmd+4 do not.
All the other applications have the same problem. For example, in Finder, Cmd+1 and Cmd+2 works but not Cmd+3 and Cmd+4.
It seems Cmd+3, Cmd+4 are defined in somewhere as global shortcuts, but I can't find them.
I have looked for `Keyboard' in 'System Preferences' and installed and looked in 'KeyRemap for Macbook' but I couldn't find the keys.
Can anyone tell me where to find these keys?
My OS version is 10.7.4. Thanks in advance.

You may be having trouble with Cmd-Shift-3 and Cmd-Shift-4 (Defined in System Preferences > Keyboard > Keyboard Shortcuts > Screen Shots).
Cmd-3 and Cmd-4 are usually apps specific (eg, select tab 3 or 4 in Chrome).
Update:
Check if you are using a third party app that captures those keys. I used to have a issue similar to that when using Skitch: it would capture Cmd-Shift-7, disabling the toggle comments functionality on several editors.
Also check the Services menu (XCode > Services) where those bindings may even be publicized.

Related

Unable to map Ctrl+Right or Ctrl+Left keybindings in Visual Studio Code

For some reason the "ctrl+right" / "ctrl+left" keybindings does not work for me in visual studio code. I took a screenshot of my keybindings.json and the Keyboard Shortcuts Troubleshooting:
I've tried the same mapping without the "when" condition or different value but it didn't seem to do anything.
If I change the keybinding to other keybinding like "ctrl+shift+right" or "cmd+right" then keybinding activates. The output here suggests that the keybinding is not found by VS code.
Is there something special about Ctrl+Right/Ctrl+Left key combo?
I am using macOS Big Sur. I didn't touch any default system keybinding. I googled around for mac OS system keybinding but nothing came up under the "ctrl+right"/"ctrl+left" combo.
Before I switch over to VS code I was using Webstorm, which had this keybinding for many years. I never had any problem with it.
I'd appreciate any help or info.
Ctrl+Left/Right maps to desktop switching in macOS by default. So you need to go to Keyboard > Shortcuts in the System Preferences and remove Ctrl+Left/Right from Mission control
See
Use Mission Control on your Mac
How can I make ctrl+right/left arrow stop changing Desktops in Lion?

Looking for a system-wide autoreplace on Mac OS

I have recently moved from Windows 10 to MacOS Big Sur. On Windows, I used AutoHotkey for system-wide automatic text replacement. For example:
(alpha) would turn into α
(beta) would turn into β
Is it possible to do a similar thing using Automator on Mac? I'm not interested in app-specific settings, as I would like this to work in all apps. Not being familiar with the OS, I am struggling to figure it out, and Google/Apple Documentation have been no help!
Thanks
Go to System Preferences > Keyboard > Text and add your substitutions, as show in the image further below.
You can get to System Preferences from the Apple menu, far left of the menu bar, or from Spotlight pressing the commandspace bar keyboard shortcut and start typing System Preferences, or from the Dock clicking on the System Preferences icon, as shown below.

How to make iTerm2 appear on the current screen?

Under Preferences -> 'Keys' It is possible to tick Show/hide iTerm2 with a system-wide hotkey.
However iTerm always appears on the main display (monitor) instead of where the cursor currently resides.
e.g. if I have three monitors, and am working on the third screen, the hotkey makes iTerm appear on first monitor, instead of where I am currently working.
Any advice how to solve this please?
UPDATE:
The bug strikes back again in v.3.1.6. If any workarounds are known, please share.
I'm on Sierra using iTerm 3.1 and I have the option under window to put the screen where the cursor is (bottom right drop down options). I'm using it with a hotkey.
The answer by Grant works.
The only thing you need to do is to install the beta version since there was a bug in the stable version.
This bug was fixed in 3.1.beta.1 https://iterm2.com/downloads.html
Here's the link to the latest beta version https://iterm2.com/downloads/beta/iTerm2-3_1_beta_4.zip
This may be a couple more keystrokes than you were hoping for, but if you install window management software like Size Up, you can get this working with just a few keystrokes.
Maintain your ⌥Space hotkey preference on Iterm2. Go to Size Up -> Preferences and change 'Send Window Prev Monitor' to an easy keystroke. I used ⌥1.
Now, you can do ⌥Space to get the terminal open and ⌥1 one or two times to get it to your monitor of choice. It takes a couple of key combos, but not too many!
I had this problem with macos monterey and iterm 3.4.15. I'm using the hotkey to show the terminal with slide-out window. After some search on the internet I found that disabling the option on system preferences to reopen closed documents solved the issue and the hotkey is now opening terminal on the screen with cursor as it should.
mac -> System preferences -> General -> (deselect this) Close windows when quitting an app
Neither of the above worked for me, but this helped, even though the question was quite different in that thread.

XCode 4.5 Documentation Screen obscures main project screen

I am using xCode for the first time - since 1986 I've used other IDE's (turboPascal, JBuilder, Eclipse, NetBeans, Tibco BW...) but to the uninitiated Xcode seems reach new levels of awkwardness.
Every time I access help e.g 'API documentation help' the documentation screen obscures all other windows. Presumably there is a magic key that dismisses the documentation screen and return me to the main project screen. (Like a back button in a browser). I've tried many key combinations.
Is there a magic key that always gets you back 'as you were'?
You can set a shortcut to switch between the windows of the active app in System Preferences → Keyboard → Keyboard Shortcuts. I prefer Alt+Tab.
This will allow you to switch between the documentation and the editor window with a shortcut. You could also use Cmd+W to close the documentation window.
Use command + ~ to alternate between views, this works in every app on macosx.

TextMate: Shortcut for switching focus between editor and project drawer

I'm looking for a shortcut for switching focus between editor and project drawer in TextMate. I googled a bit with different results, but none of the shortcuts is working for me:
http://dirtystylus.com/2007/10/26/toggling-between-main-window-and-drawer-in-textmate/
http://gtdmarc.blogspot.de/2008/06/some-useful-textmate-shortcuts.html
This link suggest installing the MissingDrawer Plugin, but but that's not the solution I'm looking for.
I have OS X Lion 10.7.3 and TextMate 1.5.10 on a MacBook Pro with a German keyboard layout.
The shortcut in TextMate 2 (using a spanish keyboard) is ctrl + tab.
The official answer is in the docs:
⌘` ⌘~ Switch to the next/previous window. This keyboard shortcut is based on the physical location of the key so on many European keymaps it is instead ⌘< and ⌘> (it is the key to the left of the Z).
⌥⌘` ⌥⌘~ Switch between main window and drawer. Like the previous key this one is also based on physical location. The function is not available on Panther.
EDIT
Both have been working for me on my french keyboard but not how the docs said: neither ⌘+< nor ⌘+> did work but ⌘+` did. YMMV.
ENDEDIT
Just found it, it's ⌘+⌥+<.
In 2.0-beta cmd+alt+tab works fine. It's equivalent of Navigate->Move focus to file browser

Resources