Android Studio: "Prefix key pressed: Toggle Logcat Formatting" - android

This morning I updated Android Studio to Electric Eel.
I'm using Mac with Ventura.
Currently I'm not able anymore to create # characters. Normally done with Alt-key and L-key. On the status-bar on the button appears a message "Prefix key pressed: Toggle Locat Formatting"
What's going wrong here? How can it be fixed?
Has it to do with the update? I guess so. I haven't had that before.

I got a temporal fix for this.
In Android Studio -> preferences -> keymap -> Plugins -> Android -> Toggle Locat Formatting
Right mouse click -> remove

Related

How to make word wrap in android studio by default

When I write something on the android studio, the line goes on over the right screen. How do I turn on word soft wrap in android studio?
If you are on mac and want to soft wrap just the current active Editor, here is how to do it: -
On the menu bar
View -> Active Editor -> Soft-Wrap
Please goto "File->Settings->Editor->General" tab and check "Use soft wraps in editor". it will solve your problem.
Updates: As #ThePartyTurtle mentioned on the comment some versions of Android Studio specifically from v3.5.3 This option is available via
Android Studio->Preferences...->Editor->General
You go to Android Studio > Preferences > Editor > General > Soft Wraps
then you have to indicate what type of documents you want the soft wrap to be applied on. Be sure to separate each type with a semicolon.
example: *.md; *.txt; *.rst; *.adoc; *.dart; *.plist;
Image that complements the explanation of the menus
If u want to use soft wrap by default go through the following steps
step-1 : Click on view ( in Navigation bar )
step-2 : Choose Active Editor
step-3 : Click on Soft wrap
that's it ...
File>Settings>Editor>General
Android Studio Arctic Fox Solution
From the menu:
File > Settings > General
Tick the Soft-wrap these files checkbox.
File > Settings > General
Tick the "Soft-wrap these files:" checkbox, and write *.*
Apply > OK
Here's my 2 cents:
A quick way to toggle word-wraps:
Ctrl + Shit + A : (opens a search window with "Actions" tab enabled.)
Type Soft wrap
Press enter on the first search-result: View | Active Editor Soft-wrap
Cheers 🍻
If you are on mac: Android Studio -> Preferences -> Editor -> General -> Soft-wrap these files
If you are on Windows : Settings > Editor > General > Soft-wrap these files
To enable Soft-wrap, write the following code in the box in front of the checkbox
*.* to wrap all the files in the editor
*.<extension_of_file> to wrap files with specific extension an separated by semicolon

Android Studio: Enter key won't create new line where block will [duplicate]

In Android Studio, my cursor is white rectangle. I'm cannot write anything. And changed my keyboard button actions.
h-->left arrow j-->down arrow k--> up arrow l-->right arrow
How can I fix problem or can I reset Android Studio settings?
Just got the same problem as yours. And this is the solution:
Go to File > Settings > Editor > General > Appearance, then uncheck the Use block caret
Try fn + ins. That worked for me.
Go to settings and plugins and just disable the IdeaVim plugin it works in 2020.itx also occurs due to this extension.
In windows, win+insert worked for me.
Presse Fn+0. It will work instantly.
go to plugins and disable IdeaVim then restart android studio it will be ok ...
Press Fn + Del on your keyboard together.
Explanation: Its because Delete key on keyboard has Insert function. So pressing Del along with Fn key will enable Insert mode within your editor from Overwrite mode as in your case.
It's ins in the latest version of Android Studio.
In windows if you press INSERT key cursor mode will get change,use WINDOWS + INSERT to get back into normal mode
For mac users just right click and deselect "Column selection mode" or press Shift + Command + 8
Just restart Android Studio and voilà !
None of the other solutions worked for me (Windows 7, maybe with an inactive Lock Num key).

Ctrl + Space Not Working Properly Android Studio

i am facing problem in android studio. In eclipse when i want to use class like Intent, then i write intent starting with lower case it give me suggestion box indicating class name Intent, but in android studio if i type intent starting with lower case it does not Provide Suggestion class name Intent.Thanks in advance.
In my case Ctrl + Space was overloaded by mac shortcuts. And even in the case, I disabled them, they conflict with Android Studio.
So, I gave them another keys and it solved the problem.
Go to the System Preferences -> Keyboard -> Shortcuts -> Input Sources and use new keys for them.
The problem is that Android Studio has different key binding than Eclipse, but you can set the key binding to be the same as in eclipse in android studio settings. Also by default ctrl + space is case sensitive in Android studio, you need to turn that off too.
Move to File -> Settings -> Keymap and change keymaps settings to eclipse so that you can use the short cut keys like in eclipse.
You can set 'Case sensitive completion' to 'None' in IDE Settings > Editor > Code Completion.
That should do it :)
File --> Settings --> Editor --> General --> Code Completion --> Case sensitive completion --> None

Where is the display window in Android studio?

eclipse has display tool(window -> show view) in debug, I want to call variable or method name like eclipse so where is the display tool in android studio ??
please help, thanks
I think what you're looking for is the 'Evaluate Expression' window, which pops up with a ALT+F8 combo. Here is some more info.
Yes "Evaluate Expression" in Android studio is like the "Display view" in eclipse. In case you're not sure of the shortcut, Go to Run > Evaluate Expression.
Hope that helps

Inputs not working in Android Emulator

I am using Phonegap 1.9.0 in Android 4.1 with the following simplified index.html page:
<html>
<head>
<script type="text/javascript" src="cordova-1.9.0.js"></script>
</head>
<body>
<input type="text" name="somethings"></input>
</body>
</html>
The app comes up fine, but when I give focus to the input and try to give it text, nothing gets entered.
The OS acts as if I am pressing keys (on the virtual keyboard) because it is suggesting spelling corrections and the keyboard UI responds... but nothing makes it into the input field.
What am I missing?
Apparently this is a bug in PhoneGap 1.9.0, and has been fixed for the upcoming 2.0 version
https://groups.google.com/d/msg/phonegap/rEo8IjPY28Q/SOUWO7x6MfAJ
Add this two lines of script in html file and try:
Ext.Loader.setConfig({ disableCaching: false });
Ext.Ajax.setDisableCaching(false);
Is Hardware keyboard support explicitly enabled for your Emulator AVD. Please refer to this question for details : Keyboard stoped working on Intel x86 Android emulator after upgrading to ADT 20
try this:
in AndroidManifest.xml.
android:hardwareAccelerated="true"
Please type with softkey, instead of emulator keys. It should work.
Emulator keys may not work some times. What you can try is add "Keyboard support" while creating emulator.
AVD manager -- > select your emulator -- Edit .. Hardware section
click New button select "Keyboard support' from property dropdown.
double click on no to show yes/no drop down and set it to YES.
I just had the same issue - I use Titanium .
I'm on an Ubutnu, so this is how I fixed it: Titanium -> Window menu -> AVD Manager -> highlighted my emulator I want to fix -> click "Edit..." button -> at the bottom, there is a "Hardware" section -> click "New.." -> then find "Keyboard Support" option in the dropdown -> Hit OK -> under the "Hardware" section again, highlight the "Keyboard support" item you just added and in the "Value" column change it to "yes" -> click off or click on another property list in the "hardware" box (this seems to apply the change) -> click "edit AVD" button.
This seemed to fix it for me.

Categories

Resources