Android Studio just updated to Chipmunk and now when I type in say 'c', no suggestions pop up for a property in dart/flutter. Only if I type the first letter 'b' for backgroundColor do I get the suggestions.
I can't find the setting for showing all suggestions using the letter in any location of the functions. How do I set this back?
Ctrl+Space is the shortcut, but before it would happen on its own, I don't need to use it.
Related
I was trying to refactor a filename in Android Studio when I accidentally mistyped the keyboard shortcut.
Since I have a 75% keyboard, I don't have F rows. So I tried to hit Shift+FN+6, which would result in inputting Shift+F6, which is the keyboard shortcut for refactoring. But because of my typo, I hit some other keyboard command. Probably did <some keys> + 6 by accident.
Now there's a little 6 label listed in front of the filename:
Does anyone know what shortcut I accidentally hit, so I can undo it? I found an SO user who did the same thing as me but he got no replies. I tried hitting a bunch of random shortcuts and looking in the options menu but I can't find the option that I must've hit.
https://resources.jetbrains.com/storage/products/intellij-idea/docs/IntelliJIDEA_ReferenceCard.pdf
Android Studio is based on Idea and inherits its features.
I'm guessing this could be the numbered bookmarks feature. Try Shift-F11 to list all bookmarks or Ctrl-F11 to toggle it.
when I select a widget say a Text widget in android studio, I hit on alt and enter to generate a code. For example, you can wrap a widget inside a column with this combination but in my case, this combination suggests me things like : generate getter and setter or toString() method which definitely come from java. Now you might say, you have to change your key binding then but that is the problem, on keyboard shortcuts section, I see only one section where I can assign a combination. But then this happens where I only get code suggestions for java. How could I possibly change that?
Alright, so I found the solution, when you check the keyboard shortcuts, you gotta find show context actions and assign a key binding to it, then it is fixed.
I use Android Studio 3.01, it will display the wrong hint "Expecting member declaration" when there are some problem with my code.
But the text information of the wrong hint is hard to copy, it will be disappear immediately if the mouse is out of the hint area. I hardly to select the text of hint and click Copy item from Right-click menu.
Is there a simple way to do it? such as keyboard shortcuts.
Add Content
Many times that both the error hint and keyword hint are displayed simultaneously!
You may take a look to this question :
How to copy error message in Android Studio tooltip
which contain the answer:
Once popup shows up, move your mouse pointer over it and simply select (mark) bubble's text, then do Copy with keyboard shortcut (CTRL+C on Windows or Command+C on Mac) while still having mouse pointer over the bubble.
Is it possible to enable autocompletion of the selected suggestion when entering special characters like in Visual Studio?
For example:
When typing 'MenuI' Android Studio suggests 'MenuInflater' that I can autocomplete by hitting TAB after which I type SPACE to separate my variable name.
In Visual Studio I can type SPACE directly (instead of TAB) to get the autocompletion plus my space character. This works for other special characters like period, brackets and so on, too.
Yes, I have also faced the same issue in Android studio. And finally I found it here.
Open the Android Studio settings go to Editor --> General --> Code Completion
and check the option "Insert selected variant by typing dot, space, etc."
And uncheck the options "Basic completion (Ctrl+Space)" and "Smart Type Completion (Ctrl+Shift+Space)"
Check this Android studio settings image
Well, this is implemented, slightly.
If you have MenuInflater and type in MenuI, and then CTRL+SPACE, which means you tell the IDE that you want to use the autocomplete dropdown, and then press space, it works as you wish.
So, I could type in MenuIn, then I could either press the down key, or use CTRL+SPACE ("MenuInflater" Should now be highlighted in blue:
), and then press space, and it'll work as you wish.
I suck at explaining, so if you don't get it, I'll try more.
I just started to use Android Studio and wondering if there is a way to search interactively in property window.
I mean like Xcode does. (It's not a properties, though.)
Is there a plugin or configuration for the function like this?
Android Studio actually has a search tool for properties similar to the one in Xcode. But it's implemented in a very unusual and un-intuitive way. Which makes it hard to find.
In Android Studio version 1.5.1, you have to click either on the 'Properties' header or any property-name below the header, and then you need to start typing the property you want, even though there is no text-box or any other indication that your typing will produce any effect.
When you do this, then a text-box appears with the characters you've typed in. And Android Studio highlights all the properties that contain your character sequence. You can then look only at the highlighted properties to find the one you want.
There is no filter like in Xcode, but if you start typing property name the selection will jump to the first match and the rest of the matches will be highlighted.