Cursor in android studio for Mac is rectangle area - android

The editor keeps in inserting mode, I cannot change to the mode in "|". Two ways from the Internet have been tried, uncheck the "use block caret" and Fn+enter. Fn+i can change once for a file, but when I open another file, it still keeps in inserting mode with a rectangle area.

You should have seen this when there is a Vim option enabled in your Android studio IDE. To resolve this , double press shift which allows to search files and then search for Vim actions. Here, you should see Vim enabled is ticked. Uncheck that option to disable and your cursor becomes normal.

Go to
android studio preferences
search for "use block caret"
uncheck it

Try pressing, Command+Enter or
Command+n
or if all else fails, try exiting, and restarting Android Studio

Related

How to disable Code Completion in Android Studio?

I am new in Android Programming and I want to disable the auto-completion in Android studio. I think this might even improve my coding ability and help me to understand the API Structure. I've done a lot of search in Google, but nothing found positive. So how to disable the auto-completion in Android Studio ? I want disable code-completion of every language (XML,JAVA,Groovy...).
I want to show nothing even if I press the ctrl+space .
Go to File-> Setting-> Editor unchecked all check box
Then Go to File-> Setting-> Keymap-> Main Menu->Code->Completion remove all hot keys and apply.
File -> Power Saver Mode
This disables a bunch of features, including code completion
Go to
File-> Setting-> Editor
unchecked all check box
then
Go to Keymap-> type basic in search box
Then Under
Main Menu-> Code -> Completion-> select Basic ->Right click ->remove Ctrl+Space
assign
Ctrl+Space to any other option

Confirm Exit Dialog When Closing Android Studio

When try to exit the Android Studio, it shows a confirmation dialogue box asking 'Do you really want to exit?'. I mistakenly check the 'Do not ask me again' check box when I tried to exit the android studio. Now, I want that confirmation dialogue box back. I checked it out under File -> Settings but I could not able to find any option to restore that feature back. And also googled it but all in vein.
For MAC users follow the following steps:
1)Select Preferences from the Android Studio menu
2)Scroll down till the IDE Settings and select the sub section General
3)In the Startup/Shutdown section, you will find Confirm application exit. Select it to enable it again
4)Press Apply
For Windows users follow the following steps:
1)Select File from the toolbar
2)Select Settings
3)Scroll down till the IDE Settings and select the sub section General
4)In the Startup/Shutdown section, you will find Confirm application exit. Select it to enable it again
5)Press Apply
Open File -> Settings
Enter exit in the search box on the top left
Click on System Settings
Check Confirm application exit
Click on Apply
1. Mac Shift+Cmd+A, Windows Ctrl+Alt+S
2. Type "Confirm application exit".
3. Switch ON / OFF in the same windows.
To enable confirmation exit
File -> settings -> General -> Tick confirm application exit
For updated answer/guide as of Android Studio 2.1.1
Go to File
Select Settings
Under Appearance & Behavior
Select System Settings
Click/Check Confirm application exit
Ctrl + Alt + S (for opening Settings shortcut) - Windows
Alternatively to the above answers, you can prefer the hackish way of altering IDE settings - by editing ide.general.xml settings file (on Windows it shall be C:\Users\<LOGIN>\.AndroidStudio\config\options folder) and altering <option name="confirmExit" value="false" /> to true :)

How to make Android Studio automatically suggest code fixes

When using Android Studio, I want to be able to just put the mouse cursor on top of a code word with a compiler error and get a drop down list with fix suggestions. Right now in order to open that list, I must press ALT + ENTER. How can I make Android Studio to open the list automatically when the coursor is above the error line?
In your Android Studio go to:
Settings > Editor > Code Completion and check in 'Autopopup code completion'
You might check as well the other options in the tab - e.g. delay in ms.
It seems that there was an update to the Android Studio and this feature was added. You need to play with the error line a bit (sometimes there's a need to press it a few times) and then you'll get the option to view code fixes.

Intellij "Run as Android application" missing

The emulator android is really running slowy, and I found Genymotion and runs really fast! And when I tried to use with Intellij, after I followed every step from this doc https://cloud.genymotion.com/page/doc/, I got stuck in this item:
In your application project, right click and chose "Run as Android
application" The "Android Devices Chooser" opens Click on the
Genymotion virtual device you started/created
I really can't find "Run as Android application" whenever I click on my folder project, where I'm missing?
Look at this image, I really don't know why.
http://i42.tinypic.com/2ia76rl.png
In IntelliJ inside the Run/Debug Configuration dialog (available under Edit configurations...) you have to select radiobutton "Show chooser dialog" instead of Emulator.
Then you just press Run and you get the list of running devices.
If you select "Use same device for future launches" in the configuration dialog, you won't have to select the device again next time.
Check the toolbar of Intellij. There is a drop down menu (next to it are the "play" button and the "bug" button to start the debugger). You need to setup an Android configuration for your project first.
Check this site
http://www.jetbrains.com/idea/webhelp/creating-and-editing-run-debug-configurations.html.
Although I have a configuration for my project, like you I can't see it in the menu your screenshot is showing. But I can use the mentioned run button to run my project without any problem.
Good luck.
On your screenshot you have a "Run" item on the options. Look at what appears when you let your mouse over it ;-)

run not responding for android in eclipse

I am updating an Android project, and for some reason the run button in eclipse does nothing. I can get the app to run if I go Run>>Run Configurations... and then start it from that, but if I just click the play button or if I use the hotkey for run (CTRL + F11 ) then nothing happens. It seems to make no difference if an emulator is already going or not.
Anyone have suggestions? I like to code by making small changes and then running the app to see what happened and its very frustrating to have to go through 3 clicks just to get it to run every time.
Thanks
Using default settings in Eclipse, the Run button and hotkey CTRL + F11 will not work when the xml editor is in focus. It should work if you are working with the Java editor. To use the button or hotkey while editing xml, first click on the project in the package explorer.
You can adjust this by going in to Eclipse Preferences and choosing Run/Debug and make it launch your last used Run Configuration. Then only for the first time you launch you will be required to right click your project and choose Run As -> Android Application. After doing this pressing Ctrl+F11 or the Run icon will always start that Run Configuration.

Categories

Resources