Android Studio commands not working on Mac - android

After upgrading MacOS and Android Studio, a lot of the menu and shortcut commands I rely on no longer work. For example Shift-F6 for renaming vars (I tried from the menu and shortcut). Also, things like Cmd-Shift-o to search a list of files. I would expect equivalent menu options to work, but they don't.
Here's my setup:
Android Studio Dolphin | 2021.3.1 Patch 1
Mac Ventura 13.1
Preferences -> Keymap is set to MacOS.
I use an external Logitech Bluetooth keyboard.
I'm a longtime AS user and I have a second, nearly identical setup, with an external keyboard, on another computer, which all works fine.
I've tried all the usual stuff like rebooting and invalidating caches.
I tried reinstalling AS, just the app, not all the settings files, etc.
Before I try to completely wipe out AS, which I'm not sure will work either, I would be very grateful for any suggestions.

You should also press fn button if you have one on your keyboard.
Or try to turn it off:
Choose Apple menu  > System Settings.
Click Keyboard in the
sidebar.
Click the Keyboard Shortcuts button on the right.
Click
Function Keys in the sidebar.
Turn on “Use F1, F2, etc. keys as
standard function keys”.

Seemed like AS needed a total reset. I found this SO posting.
To restore the AS default settings:
File> Manage IDE settings> Restore defaultsettings
This fixed key mappings that didn't include the FN keys. To get those to work I had to toggle the FN lock button on my keyboard. That button does not turn FN keys on/off, but switches them between different mappings.

Related

Android Studio reformat code shortcut not working

This is my keymap config in Android Studio. I used to use Command+Alt+L to reformat code after I write a bunch of code and it has been a habit of mine. But this shortcut is no longer working, the Show Reformat File Dialog(Alt+Shift+Command+L) works!
This shortcut is so important to me and I don't want to change it to something else, any idea?
PS: I have an external keyboard plugged in to my Mac when I'm at home. Last time this happens was when I'm using the external keyboard, so I unplugged the external keyboard, not fixed, and then I restarted Android Studio, not fixed, then I rebooted the system, worked. This time I rebooted the system, not fixed, invalidated cache and restarted, still not working. I tried to remove the shortcut and add them back, but I'm not able to add shortcut with Alt and Command both pressed, I can add Alt+L and Command+L, but not Alt+Command+L, so I gave up. Then I changed the keymap setting to something else like Eclipse's and change it back to Mac OS X 10.5+, not fixed... The last option I will try now is to uninstall the AS and reinstall it.

meta keyboard key in Windows 10

I use a Mac at office and a Windows OS at home, as it is common I am really getting confused with the use of two different Keymap shortcuts.
So I am trying to change my windows keyboard so to mimick an Ios keyboard.
Outside the specific use of a software as hotkeysto change the keyboard map, my problem is that the windows key is not recognized as meta.
According to different posts and the intelliJ blog/issue, I can make windows key as meta (mac os) adding in File idea.proprieties the string :
keymap.windows.as.meta=true
Well does not work, when I put this string in IntelliJ and restart AS, meta is not recognized in fact if I try to change some shortcuts windows+ some letter, the IDE recognizes only that I pressed the hardware button `Windows, making impossible to use Mac OS keywords really useful and simple as Copy, Paste, Cut.

How to remove the device's frame on Visual Studio Emulator?

I only need what's relevant for the development and testing. I don't need the huge "emulated" dumb bezel area mostly good for grabbing and relocating the emulator window. Even the real devices start to eliminate those bezels nowadays.
I don't need the directional clues about the device orientation it provides. Just small grabbing handle should be enough on the tool strip or in the main window.
It wastes screen real estate and makes tiling besides other useful windows hard or inefficient (even with my double monitor setup).
How can i hide or remove it?
It no longer works: if I remove the properties (using the small trash button or leaving them empty), the manager will restore them. (My version: Xamarin.Android SDK 10.2.0.100)
But I've found another solution:
Open Android Device Manager from Visual Studio.
While your device is powered off, click the "..." in the top right corner
Select "Show in explorer"
Edit the file "config.ini"
Remove the skin.name and skin.path properties and save file
Start the device!
Open Android Device Manager from Visual Studio.
While your Device is powered off Click Edit
Find the property skinname and clear the value (leave empty)
Find the property skinpath and clear the value (leave empty)
Click Save & Start Device.
Worked for me
Show in Explorer now called : Reveal in Explorer
And you can just add // before skin for example:
//skin.name=pixel_xl
Open Android Studio -> Tools -> AVD Manager -> Pencil Icon next to Your Virtual Device -> Uncheck 'Show device frame'

How to always keep Android Studio Tool Windows in Un Docked Mode

I recently switched to Android Studio and noticed that the tool windows have a Docked Mode option when I click on the little Gear icon in each tool window.
I personally prefer the Un-Docked Mode(as the tool window minimizes conveniently when I click in the editor) and set every tool window(except the Project Explorer) to be Un-Docked.
But every time I restart Android Studio it irritatingly converts all Tool Windows back to Docked Mode.This was very easy to do in Eclipse but after searching online for quite a bit, I still don't know how to save the UnDocked mode for Tool Windows in Android Studio. Any ideas how to solve this?
Today's update to Android Studio 0.5.5 fixed the problem for me! Now Android Studio always remembers to save the state of the tool windows!
Unlike #kpsfoo, I want the tool window on the docked mode, but I did something and wasn't able to go back... Finally I went to file > settings > I did search for "docked" in the search box and created a keyboard shortcut. This way I'm able to quickly switch on and off the docked mode.
I hope it could help somebody...

Disable Android keyboard

When I am trying to type into an EditText in the emulator, it does not allow me to enter with the computers keyboard and the onscreen keyboard always pops up.
Is there a way to disable to the keyboard from popping up and allow entry from computers keyboard instead?
thanks
Try this:
Eclipse > Window menu > AVD Manager
Select your virtual device and click Edit
Under Hardware, Click New
Select Keyboard Support then click OK
Edit its value to yes
Now you have to click off onto another item in the list, like "Abtract LCD Density" or something. This seems to make the UI keep the "yes" change.
[Source]
Go to config.ini file in the AVD's local directory and set hw.keyboard to "NO".
Or you can update your emulator through command line using following command:
android update -avd <avd_name> [-<option> [<value>]] ... [-<qemu args>]
Good luck with Android
in simple way,
select your AVD from AVD manager
click Edit check "Keyboard Hardware Present"
now start your device. its done.
goto AVD manager -> select your device -> click settings -> check mark the "Hardware keyboard present" option -> restart your virtual device.
A slight correction for your question, It is not on-screen keyboard but its soft keyboard (Keyboard from emulator called soft keyboard).
But if you want to disable soft keyboard from you emulator kindly disable 2 things from your emulator, Android Keyboard (AOSP) and Google App.
From your emulator Go to Settings > Apps > and disable Android Keyboard (AOSP) and Google App. NOTE: By disabling Google App you may not use some Google App function, but you can Enable it back anytime.
Image below

Categories

Resources