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

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.

Related

Visual Studio 2013 resize window shortcut hotkey

Is there any way to make a hotkey to resize the width of the current editor window in VS2013?
I do pretty much everything entirely through hotkeys EXCEPT resizing my windows. Most often I have 2 or 3 editors open in the same window vertically so each one is relatively narrow. Switching between the windows is easy with Ctrl + Tab but I really wish I could press a hotkey with left/right arrows to increase/decrease width of the current editor.
EDIT: Or at least go full screen into the current window temporarily. This is not the same as going full screen normally with Shift + Alt + Enter since that full screens all 3 windows still seperated.
Any way to do this?
Perhaps not quite what you want but VS has a shortcut for "Window.Float".
Options > Keyboard > Window.Float
Assign a shortcut for it (I've assigned Ctrl + W, Down Arrow)
When you float the window, you can snap it using the Windows shortcut of WinKey + Arrows.
WinKey + Left snaps the window to the next left-available position.
WinKey + Right snaps the window to the next right-available position.
WinKey + Up maximises.
WinKey + Down minimises.
Another option is to keep the tool windows "Solution exp, Team exp, .." as hidden,
and then using their shortcuts to show them again. When you are done press "Alt + _" for the alt-space menu.
For example, using the default settings, I have solution explorer hidden.
My use flow is:
Ctrl+p ctrl+p [Show the solution explorer window]
Use the keyboard to navigate or skip #1 and press "Ctrl+;" to search
When I'm done, press "esc" to hide it
or for windows where I want it to stay open: "Alt+_" then press "k" for dock

Is there a keyboard shortcut to clear a filter in the left hand navigators in 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"

Textmate-like Keyboard Navigation for the Command Line?

How do I better navigate the command line? In TextMate, I can do:
CMD + ALT + ARROW to switch tabs
CMD + SHIFT + ARROW to highlight lines of text
ALT + SHIFT + ARROW to highlight words
ALT + ARROW to jump words, etc.
How do I do this kind of stuff in the terminal?
Here's a slightly more complete mapping from Mac text navigation to the default Readline keys:
I set this up in the Keys pane of my iTerm2 preferences, but you should be able to make the same mappings in Terminal.app (Edit: Everything except the first two. Terminal.app only lets you pick from a few different keys)
In MacOS' Terminal app, you can change your keyboard bindings; go to Terminal Preferences (shortcut Cmd + ,) and navigate to the 'Keyboard' tab:
Key => Action
control cursor left => \033b
control cursor right => \033f
etc. You can do the same thing with other emacs-style bindings. As far as switching tabs, that's a System Preferences > Keyboard > Keyboard Shortcuts setting; click 'Application Shortcuts' on the left side, and then click + on the right to add a new shortcut. Use your desired keyboard combo and pair it with the exact menu name, which in Terminal for moving forward/backward through tabs is 'Select Next Tab' and 'Select Previous Tab' (via the Window menu in Terminal), respectively.
Does that help?
This is a pointer for anyone landing here looking for the equivalent tips for iTerm (as opposed to the default terminal).
To do the same in iTerm, go to menu "Bookmarks", "Manage Profiles", "Keyboard profiles", "Global".
Then add all of the shortcuts you see in the other answers here, but instead of sending text "\033..." when creating a mapping, you simply select the action "send character sequence" and the character for the escape sequence!.
"\033b" becomes b
"\033f" becomes f
and so on.
Escape sequence example
Some things can be done by editing the readline bindings (see bind -p / man bash) but for some of the mac keyboard keys you can (or need to?) set extras up in Terminal.app's preferences.
For word navigation try this:
Terminal preferences -> settings -> keyboard
add the following:
option cursor left \033b (escape b) (backwards word)
option cursor right \033f (escape f) (forward word)
option forward delete \033d (escape d) (kill word)
Word boundaries behave a little differently, but it's better than single character or whole line navigation, and doesn't require trading your option key for a meta key and learning a bunch of new key combos.

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 :

"Right Click" keyboard short cut for Visual Studio?

I'm trying to force myself to use as little mouse as possible and I can't find the answer to this simple short-cut anywhere! Here the the steps:
Open up Visual Studio. Open any C# file (or any code file I believe)
Point your mouse anywhere on the
window/file.
Right Click
Is there a shortcut key for this so I don't have to move my hand to the mouse?
Taken from lytebyte, you've got two options:
Shift + F10
That nutty key on the bottom-right of a modern Windows keyboard, the Menu key
Depends on where/why you're right-clicking.
The context-menu key is on the right of the keyboard nowadays, usually between the Windows key and the Control key on the right of your spacebar. That will open the context menu wherever the current focus is (usually in the text editor).
If you're using the right mouse button just to open the refactoring tools, you can use Ctrl + . (control period) to pop open the "smart tag" on any identifier. That'll get you the "generate method stub" menu item and the like.
To open a new file without keyboard you can use
CTRL + SHIFT + N (Using Resharper)
To show up the right click menu for any part of your code. Point to the part that you want and use
SHIFT + F10
Normally, I like using
CTRL + SHIFT + G (Resharper again)
for getting the Navigation menu (Usage, Base, Implementation, etc)
Even better if you want to go to any Method/class/intenal/or a field, use CTRL + SHIFT + ALT + N (Again using Resharper), this will bring you a list of all that match your criteria to choose from.
Does your keyboard have the extra 'Windows' keys, ie. the Windows logo (Start key) and the one on the right-hand side of the spacebar that looks like a menu? Cause that button on the right-hand side is the 'Context menu key'.
See the key between the right-hand side 'Windows' key and the Ctrl key?
Windows Keyboard layout
If your keyboard is less than 10 years old you should have these keys, unless you have an IBM laptop or a Mac.!
Assuming you just want a key you can press to right click, most\many keyboards have a key between alt and ctrl that right clicks.

Resources