Strange key mapping in Android Studio - android-studio

I am new to Android studio, it seems to be great IDE. But I have found that it has really strange key and shortcut mapping. I am using Czech keyboard.
When I try to type ">" by pressing Right ALT + . the symbol is not appearing, and I got message box that says "Go to custom Region. There are no custom foldings regions in the current file."
It is really strange behaviour, I have problem with writing many more characters like brackets,..... I tried to set keymap profiles to Visual Studio and more. But nothing seems to work. I didn't have any of these problems in any other IDE (Netbeans, Eclipse, Visual Studio, Xamarin)

Add this line:
actionSystem.force.alt.gr=true
to this file:
...\Android\android-studio\bin\idea.properties
As written here:
http://youtrack.jetbrains.com/issue/IDEA-91975

Yes, well... its problem with "old" keyboards. Newer keyboards don't have Alt Gr keys and IDE doesn't count on this in default.
Solutions:
Buy a new keyboard with no Alt Gr on it (using right Alt instead of Alt Gr is working for me)
Go to File -> Settings -> Keymap and search for implementation - delete Ctrl + Alt + B, hit "Apply" and you can now use this shortcut for "{"
As already mentioned below... add following line to ..\<Android Studio folder>\bin\idea.properties:
actionSystem.force.alt.gr=true
(update) Since newer version of AS (not sure which one, should be 2.3.3+), you don't need to manually access the properties file. Go to Help -> Edit Custom Properties and add actionSystem.force.alt.gr=true there.

Go to Preferences -> Keymap and choose Mac OS X as Keymaps.

I have been a long time Visual Studio user, so wanted to leverage all the keyboard shortcuts that I had picked up using Visual Studio.
On Android Studio, I first changed the Keymap to be Visual Studio. You can do this by using Alt+F7 on Windows and then search for Keymap.
By using the Visual Studio Keymap in Android studio, I got only debug related mapping, which was still a minority of what I use in Visual Studio.
So went ahead and added/modified some more mappings.
Here is the github link
https://github.com/vinayakg/VisualStudioKeymapforAndroidStudio/blob/master/settings.jar.
PR's welcome.

As for '>' sign (AltGr + .) and Android Studio 1.0.1, go to File>Settings, choose Keymap in IDE Settings section, search for "GotoCustomRegion" item (it is located in MainMenu-Navigate) and remove its mapping (via context menu).

If you're using macOS newest versions and have had weird behavior with the shortcuts, try this:
Go to Android Studio -> Preferences -> Keymap
Now change from "Mac OS X" to "Mac OS X 10.5+" and hit apply.

Related

Disable shortcut in Android Studio

I always accidentally do the following keyboard combination SHIFT + ALT + X which will close all of my open files in Android Studio.
UPDATED
My apology, I should have been more clearer asking question. The first thing I did is to google it and I did saw the post in stackoverflow but I can't find SHIFT + ALT + X
See screen shot here:
Go to File -> Settings -> Keymap search for Clear Context and remove or replace the shortcut
Move to File -> Settings -> Keymap and change Keymaps settings to your keymap,for Example : Visual Studio,so that you can use the short cut keys like in Visual Studio.
From here,you can enable or disable any shortcut, you want.
Type in Search, Clear Context.
Then on it Right Click, and you will get your choice.

Resharper Shortcut keys messed up

Yesterday, resharper randomly uninstalled after I had VS crash, after re-installing, nothing works correctly. I have reset VS's default key bindings and then enabled resharper's. When I first use a resharper shortcut, a menu pops up as expected asking me to select whether or not to use the resharper versions of shortcuts. I say yes and select apply to all resharper shortcuts. This is where the strangeness begins. Here at work we use code cleanup a lot (ctrl+e, ctrl+f), but ever since the crash and reinstall, I cannot use this shortcut. It recognizes the ctrl+e and opens up recent files and doesn't wait for the ctrl+f part of the shortcut. Thoughts?
Seems like you applied "IDEA/ReSharper 2.x" keymap scheme. Please reset keymaps once again and then apply "Visual Studio" keymap scheme here ReSharper | Options | Environment | Keyboard & Menus.
By the way, a default Code Cleanup shortcut in "Visual Studio" scheme is "Ctrl+E, Ctrl+C", not "ctrl+e, ctrl+f" you mentioned

ReSharper Shift+Alt+L (go to open file) not working in 2015 with .resx?

I'm wondering if this is just my ReSharper setup, but as of updating to Visual Studio 2015 with ReSharper Ultimate 9.1.3, using the Shift+Alt+L shortcut while editing a .resx in the designer does nothing.
Has anybody else experienced this, and is there any config that will get this working or is it a bug?
Thanks
This was caused (for me anyway) because my keyboard mapping had magically changed back to UK mapping from US (I want US).
The other day I had another issue that caused Resharper key mappings to go awry and followed some advice on another post (I can't find it at the moment) that want along the lines of:
Open Tools > Options > Keyboard and hit Reset
Open Resharper > Options > Keyboard & Menus, select "Visual Studio" and hit "Apply Scheme"
This should wrest control from Resharper back to Visual Studio and give Resharper the freedom it needs to wrest control back from VS.. ugh, but it worked
Maybe have a look to Stackoverflow - How to locate a file in Solution Explorer in Visual Studio 2010?.
Tools (in Menu) -> Options -> Keyboard -> goto input Show commands containing and type SolutionExplorer.SyncWithActiveDocument. Goto Press Shortcut Keys and press Shift + Alt + L click on Assign button.
You may get a warning that the shortcut is already in use.

Add Quick Fix shortcut in Android Studio with Eclipse (Mac OS X) keymap

I changed the my keymap settings in Android Studio Preferences to use Eclipse (Mac OS X). The shortcut Option + Enter (alt + Enter) does not work. I also can't see Quick Fix in the available actions. Help?
Edit:
It's listed under "Show Intention Actions". But trying to map it to F2 shows this error.
show intention actions at keymap

Can I Customize LinqPad shortcut keys?

I am accustomed to using ESC to "list members" and F1 to "show parameter info" in Visual Studio. This is an old habit from XCode. Is there any way to achieve this in LinqPad? I noticed an advanced preference called "use visual studio shortcut keys". My first thought is that this option would copy your key mapping settings from visual studio into LinqPad, but that does not seem to be how it works.
There's no way to customize keyboard shortcuts in LINQPad right now. The "Use Visual Studio shortcut keys" option (for which the default is TRUE) just tells LINQPad to use shortcuts consistent with VS's defaults.
Setting this option to false makes it consistent with early versions of LINQPad which used single-key combinations for things like comment/uncomment rather than the VS-style chords.

Resources