Ctrl + L will not work as my commenting shortcut - android-studio

It wont work for both commenting lines and commenting blocks of lines. All other shortcuts work. the ctrl and the / keys work as well. My android studio does have them setup on the shortcuts settings as seen in the following
The shortcut will not work on either the laptop's keyboard nor on my bluetooth keyboard (logitech k360).
Laptop is running windows 10. If any body can shed some light on anything I could try to get my shortcuts back I would appreciated.

I tried a number of things but the one that worked was invalidating the cache and restarting android studio by going to File -> Invalidate caches / Restart...

Related

Keyboard and shortcut keys not working in Android Studio in Windows

I am new to Android Studio. I recently installed Android Studio 4.0. The keyboard is not working in the Editor. The text cursor just blinks but does not respond to the keyboard. It works when I press 's' but again the same problem arises when I select any text in the editor. Also, any of the shortcut keys except Ctrl + Z does not work. Please Help me out with this problem.
Thanks.
If set-up everything good, then close all project and open again your Android Studio....

How to resize the emulator in android studio 3.5

pic 1I am struggling to resize the emulator as it is huge.
I have tried most of the tips that are on stackoverflow but without success. The posts are fixing old android studio versions.
When i am reducing size by pressing CTRL+UP the emulator is reducing is size but the phone screen is not fitting into the phone. See image please
Your help will be highly appreciated as I need android studio for my assignment.pic 2
I use hot keys Ctrl + Arrow Up to make emulator larger, Ctrl + Arrow Down to make emulator less.
Just put the mouse cursor on one of the emulator corners until the resize arrow appear and then drag it in one of the directions, the size will change(like a normal window).
I just tested it and it works perfectly...
At the end I managed to fix the emulator. I have uninstalled packet tracer. Do not know what was happening, but this cisco app was affecting android studio (emulator).
I had had the same problem which I solved by uninstalling Cisco packet tracer, and by the way I had two versions of the tracer, one was 7.3.1 (this is the one I unistalled) and the other is 8.0 (and this is the one I kept), hope my answer helps someone.

Android studio: Auto completion not working with ctrl + space

Android studio: Auto-completion not working with ctrl + space and working but lagging(suggestions are loading slowly with a loading icon) with ctrl + shift + space.
Tried all the following based on the previous similar question:
made sure power save mode is off.
invalidated and restarted.
made sure relevant checkboxes are checked in code completion settings.
Also, suggestions are working with flutter project in Android studio but not with android project. Tried for solutions but didn't find any relevant doc.
Moreover, it used to show suggestions just after pressing '.' even without shortcuts. Updated some versions and the feature is disturbed. Does code completion depend on anything else?
Edit: suggestions are appearing but it's taking about 5 secs after pressing '.' or ctrl + space
In my case it was showing only for exact text case but after below steps it was working as expected.
File->Settings-> Editor -> General -> Code Completion.
Uncheck Match case checkbox if its checked.
You can also try this
1.Close Android studio then go to the folder where android studio is located
Or you can go to the
drive C -> users -> find .gradle file and do below things
Find .gradle file -> In .gradle folder delete caches folder
then restart android studio sync your files with gradle ....
its work for me :D

Copy-paste is not working in Android Studio on Mac

I am facing a weird issue with Mac version of Android Studio (i.e., I am not able to copy (⌘ + C) and paste (⌘ + V) any text). I have no idea why it is behaving strange like this. My question may be silly, but I have been facing this issue since I started working from Windows to Mac. Any solutions and alternatives would be much helpful for me. I am completely stuck with this issue for the past two days.
There are several reasons why you could be experiencing this
You are using ClipMenu and Android studio doesn't like it
Your keybinding is messed up.
To solve keybinding issue press File -> Settings and check what the keybindings are, you have maybe changed it or imported settings from somebody else. See the image as a reference.
Note: the filter of copy, you need to do this for paste too.
To fix the issue with ClipMenu.
Right click on "Application/IntelliJ IDEA 14.app"
choose "Show Package Contents"
edit bin/idea.properties
add this property ide.mac.useNativeClipboard=True
restart IntelliJ IDEA.
There is a YouTrack issue with further information
this worked for me
go to file menu and click on invalidate Caches/Restart ,after this confirm the dialog open .
Go to File-> Setting->Editor(Under IDE Settings)->Change value of maximum number of contents to keep in clipboard to 1(Under Limits section)
I have this issue due to PopClip I have to disable it to get the keyboard shortcuts working.
Check that your keymaps aren't messed up. Go to Android Studio > Preferences > Keymap > Main Menu > Edit. If copy and paste are set correctly there, then it must be something else in your system that's stopping it
I got this bug with my ClipMenu (on Mac) while set useNativeClipboard=true.
I solved the problem by using ClipMenu to paste file into Android Studio (show menu of ClipMenu, then select item)
In my case, the Ctrl c is occupied by other programs(my case is "Oulu Dictionary" program).
Try to check if other programs have global shortcut keys.
disable the plugin Ideavm if installed under settings>plugins>installed.

Shortcuts do not work on android studio

I recently installed android studio after long time using eclipse
I have properly configured the ide and it works, but I have a problem with keyboard shortcuts.
I have setup shortcuts that comes by default and, for example, want to collapse or expand all code, this is the shortcut:
However, using that shortcut creates a comment in my code.
/ ** /
I looking setup, see the shortcut is correct:
This happens to me most keyboard shortcuts, tried different ways but do not know how to work properly.
I appreciate any help.
Thanks!

Resources