I don't know if it is bug or kind of setting, but it is very annoying while typing value i.e. android:layout_gravity="", it opens hints with dropdown, and after a while the documentation view gets opened and hides the dropdown with hints.
I checked that no button is suspended or anything like that. I use Ubuntu 14.04.
Strange, because I've not changed anything with AS from months and there was no such behavior before. There's solution:
Follow the simple steps to remove open Documentation by cursor move :
Android Studio -> File -> Setting -> Editor -> General
Right side of the screen go to Others :
Uncheck checkBox show quick documentation of mouse move & Apply.
Preferences > Editor > General > CodeCompletion > uncheck Auto popup feature
I found out that I don't want to disable the documentation.
Instead, I set the window to be 'Opened as Popup',
This displays the documentation aside to the cursor and autocloses it automatically.
Surely I've set it before as a 'Tool Window' to see the full content and then I forgot to set it back.
Note that this functionality has been moved recently. It's now in:
Android Studio -> Preferences -> Editor -> General -> Other.
Uncheck "quick documentation on mouse move".
Studio 3.4.2, somehow had setting checked, uncheck it.
File -> Settings -> Editor -> General -> Code Completion.
Cheers
This the only correct answer as far i know because i sorted out this way only. Just click on Help>find Action>auto(in the search box)> and uncheck the checkbox in the image shown
For Android Studio 4.x ~ Arctic Fox | 2020.3.1
Preferences > Editor > Code Editing > Quick Documentation > Show quick documentation on mouse move: unchecked
Related
I've been fighting this for a while now. It's gotten really irritating.
I've tried turning off
File->Settings->Editor->General->show quick documentation on mouse move
File->Settings->Editor->CodeCompletion->autopopup code completion
File->Settings->Editor->ParameterInfo->autopopup in (ms)
Dragging the documentation window to the side.
And none of these have worked. I'm using Android Studio 2.2.3 on Ubuntu Linux. What am I missing?
Thanks!
This option
File->Settings->Editor->General->Other->uncheck "Show quick documentation on mouse move"
worked for me on Android Studio 3.0.1
Regards!
Android Studio -> Preference -> Editor -> General -> Code Completion -> Show the documentation pupup in XX ms
uncheck the option.
As soon as the pop up comes out, just click on the hamburger menu button, there you will see the options you have. Here is an image for you guys:
The location in Settings for turning this feature off has been moved.
New Location: Preferences > Editor > Code Editing > Quick Documentation
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.
How can I set a maximum length for Android Studio's code editor, or may be set a word wrap?
In my Android Studio, no matter how long a statement I type on a single line, it never automatically goes to the next line, but rather a horizontal scroll bar appears.
When I autoformat using the Ctrl+Alt+L (reference), nothing happens.
My SO or Google search found a lot of material on this for Eclipse, but not for Android Studio.
If you need not a soft wrap,
but actually, brake one long line onto several lines you need:
Go to Preferences(mac) or Settings(windows) -> Editor -> Code style -> Java/Kotlin -> Wrapping and braces (tab) -> Check "Ensure that right margin is not exceeded"
Now try to reformat your code:
press
OPTION (ALT) + CMD + L on your Mac
(or CTRL + ALT + L on PC)
Edit 13.02.19
As noted in comments this option seems not available in settings for Kotlin.
However, there is a workaround to manually add it.
Here is what it takes to make it work:
Export the settings scheme.
Open saved xml file.
Find <codeStyleSettings language="kotlin"> tag (or create)
Add the WRAP_LONG_LINES setting manually:
<codeStyleSettings language="kotlin">
...
<option name="WRAP_LONG_LINES" value="true" />
</codeStyleSettings>
Save edits and and import back the scheme.
Here you go!
MacOS:
Click on Android Studio ( left top corner )
Click Preferences
Type Code Style in search
Click on Code Style
There is a filed right to the 'Hard wrap at' - you can enter needed about of symbols you need
In File | Settings, select "Editor", then "Code Style". There is an option "Wrap when typing reaches right margin".
Edit: Just tried it, and it doesn't seem to work. Anyway, maybe the option "Use soft wrap" in the "General" group is more what you want.
#Solace, actually #Fahim Faysal's answer is quite close to what you need, but since you want to solve the problem no matter how long a statement I type on a single line, it never automatically goes to the next line, 2 more steps you need to follow:
[Step 9] type the max length you prefer at `"Hard wrap at" ()
[Step 10] change "Wrap on typing" from Default: No or No to Yes
With version 4.1.2 and with Dart language you need to go to "File/Settings/Editor/Code Style/Dart" and modify the "Line length" to the preferred number.
In Android Studio:
File->Setting->
Editor->code Style->java->Wrapping and braces(tab:right side)->keep when reformatting->Line break(make unchecked)
You can change the max column width from:
File > Settings > Editor > Code Style > Right Margin (columns)
Android Studio 3.5:
Mac -
Android Studio > Preferences > Editor > CodeStyle > HardWrap at: ____
The existing answers already answer the question in straight forward way. As a different approach you could set the style guide to kotlin style guide code style. Then if you do alt + ctrl + l as you did, you'll see auto wrap as you expected.
Just open the settings, search for kotlin and look for kotlin under code style.
On the top right hand side of the settings window you'll see Set from..., click on it.
Then on predifined style > kotlin style guide
If you'd like to follow the kotlin formatting style this could reduce more effort. For more information: https://developer.android.com/kotlin/style-guide
My Environment:
Ubuntu 18.04
AndroidStudio 3.3.2
My operate:
File -> Settings -> Editor -> Code Style
Scheme -> select Project
Hard wrap at '120'
Apply
To move the grey vertical line, that tells Android Studio where to wrap your code, go to
Settings- Editor- Code Style- Java or Kotlin- Wrapping and Braces- Hard wrap at
and enter the number of characters, where the line should be.
For dart
settings => code style => Dart => Line length
In settings/code style/kotlin/wrapping and braces replace the "do not wrap" values with "wrap if long"
You can change the Hard wrap at param
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.
I am looking for Breadcrumb functionality like Eclipse in Android Studio.
In Eclipse Breadcrumb shows "method signature" when pointer(cursor) come inside whereas in Android Studio Breadcrumb is good for nothing.
Please find attached for better insight.
The accepted answer is not correct.
The feature is still here in 2018.
It's under View -> Active Editor -> Show Breadcrums.
The breadcrums are situated south of the current editing window, not north as in Eclipse.
You can enable it via View -> Navigation Bar and check it.
But it will show breadcrumb/navigation upto class only and not upto the method signature.
As suggessted by AVEbrahimi also, ctrl+F12 will show method signature.
Seems this feature gone away.
You should use:
Ctrl+F12 OR CMD+F12
Here are two ways to see the method signature through a tool tip that hovers next to the method you have selected or put the caret on.
Press ctrl + P with the method selected.
or
Go to View > Show Parameter Info with the method selected.
I found the above solution on the second link I looked at after this one. The link was for a different IDE but the hotkey works in Android Studio.
Show Parameter Info
Also, you can go to Settings > Editor
Under "Other" check "Show quick doc on mouse move". This will show a popup tool tip with information about the method including parameter info.
Found that here:
View method information in Android Studio
Pressing Alt+Q displays the name of the current context, which is actually the method name (Context Info) quickly and easily.