Is there a keyboard shortcut to clear a filter in the left hand navigators in XCode? - xcode

I can choose the navigator I want using ⌘+1, ⌘+2, etc. and I can jumpt to the filter bar using opt+⌘+j.
Is there a shortcut that can clear the filter that is better than option-command-j, then command-a, followed by a backspace?

Yes. Just press the Esc key.
"Option-Command-J", "Esc"

Related

Switch between two opened editors

I have two editors opened, one on the left and one on the right. How to switch between them? I tried Ctrl + 1/2/3 but doesn't work.
It works, using the 1, 2 keys above the letters (not the keypad). Events in the keyboard shortcuts panel are under workbench.action.focusFirstEditorGroup and so on.
You can also bind commands such as workbench.action.navigateRight and so on to move focus between panels.
Ctrl+Shift+P show all commands, search Preference: Open Keyboard Shortcuts and open it, then you can search the action or shortcuts.
for this problem,searchfocusFirstEditorgroup,you can see the shortcut,change as you like.then searchfoucusSecondEditorGroup and so on.

I can't use 'click' to add short cut in android studio?

add shortcut
I use command + button Click nothing happened but every other keys work properly.
Go to the settings menu as described below
File ->
Settings... ->
Keymap
From the appropriate menu/sub menu header, Pick the action you want to assign a shortcut to.
Right click to select either a keyboard or mouse shortcut.
Keyboard shortcut
Choose a key combination.
If the key combination is already in use you can either choose a second stroke or a modifier like CTRL, ALT or SHIFT etc.
Mouse shortcut
Choose a click or double click, scroll wheel up / down etc.
If the mouse short cut combination is already in use you can use a keyboard modifier like CTRL, ALT or SHIFT etc.

iTerm2 keyboard shortcut - split pane navigation

I have been a long time user of the standard Mac Terminal. Decided to experiment with iTerm2 after hearing good things about it from my colleagues.
One of the more useful features I am seeing on iTerm2 is its split panes (much like vim split buffers).
In vim, I can move between split buffers using Ctrl+W+arrowkeys. Is there a keyboard shortcut for iTerm2 to move between panes as well?
From the documentation:
Cmd] and Cmd[ navigates among split panes in order of use.
Cmd+opt+←/↑/→/↓ navigate similarly to vim's C-w hjkl.
⌘+⌥+←/↑/→/↓ will let you navigate split panes in the direction of the arrow, i.e. when using ⌘+D to split panes vertically, ⌘+⌥+← and ⌘+⌥+→ will let you switch between the panes.
there is configuration in the following way:
Preferences -> keys -> Navigation shortcuts
the 3rd option: shortcut to choose a split pane is "no shortcut" by default, we can choose one
cheers
I was using Terminator before, so I found it convenient to re-map Alt + arrow-key to switch between the panes. This can be done in Preferences -> Keys -> Key Mappings - press the '+' button to add a mapping. Also, in my case such a mapping was already defined in Profiles, I simply removed it.
Spanish ISO:
⌘+⌥+[ goes left top
⌘+⌥+] goes bottom right

Keyboard shortcut for Visual Studio code editor Members and Types combos

I wonder what is the keyboard shortcut for these two combo boxs and specially the right part which list all the members of current class and is very handy for navigating a large class.
I tried to figure it out myself but I do not know the exact names to search for it.
That whole thing is called "Navigation bar" (Window.MovetoNavigationBar) and can be activated by default by pressing Ctrl + F2. There doesn't seem to be a shortcut for the right side of the navigation bar, so pressing the short cut key always takes you to the combo box on the left side. You can use Tab to jump between the combo boxes.
The keyboard shortcut is Ctrl + F2 which takes you to the left-hand combo. If you hover over each one in turn (at least in VS2k8) it shows you a tooltip which identifies the two combos as "Types" and "Members", respectively.
Pressing Tab will take you to the right-hand combo and Ctrl + ↓ will expand the combo for you.
Alternative Resharper approach #1
"Go to file member" which is "Alt+\" .
go to link for advanced features
Alternative Resharper approach #2
"Go to Next/Previous Member" with Alt+Down or Alt+Up
this one is very handy and my favorite :

Textmate: remap Escape for word completion

In the Textmate code-editor I use the Escape-key, for word completion, alot.
Is there a way to bind another key-shortcut to its functionality ?
(ps: my CAPSLOCK is already CTRL)
A much better way to do this (and this applies to all Mac apps in general) is to
Open System Preferences > Keyboard & Mouse > Keyboard shortcuts
Click the + sign at the bottom
Choose TextMate from the application menu
Type the exact name of the menu command for next completion and previous completion
Now type the shortcut you want to use and click the Add button
To remap the esc key you have to copy
/Applications/TextMate.app/Contents/Resources/KeyBindings.dict
to
~/Library/Application Support/TextMate/KeyBindings.dict
and then edit it, preferably using TextMate :) as Property List Editor messes up the codes.
Look for nextCompletion and previousCompletion and replace their values with whatever suits your needs best. For example, you could replace \033 (code for esc) to \t (->|).

Resources