In Android Studio when you have Column of widgets it is very convenient to collapse the code like :
But in VSCode you cannot see the if there is a coma in the end, and even add it in collapsed mode.
Can VSCode be configured to show the closing brace and comma for folded code on the folded line, similar to Android Studio?
Related
When I selected my codes to indent it using CTRL+ALT+L, my Android Studio seems to always add a new line after each comma. How do I avoid this?
Here's what currently is happening
and here's how I need it to be
I have tried almost every things under Settings > Editor > Code Style > Kotlin, but I still couldn't get Android Studio not to add these new lines after comma
How I can move to left or right this wrap line? I am using Android Studio 3.6.1.
The problem is that if I have long text and I use Reformat Code with dartfmt the code move to the next line because of that line and is hardly readable in the flutter app at least to me.
I've found the solution in Android Studio / Preferences / Editor / Code Style / Dart: (it was 80 by default)
Recently the Android Studio 3.5 updates and now Android Studio 3.6, the editor window does not wrap the text so some lines are long and go off the right of the screen. I don't want to scroll left and right all the time, so would like the text to autowrap. I've read many posts on the issue but nothings has solved it.
I've tried going to
Preferences -> Editor -> General and enabling soft wraps there, but that hasn't helped.
I tried adding *.java to the soft wraps files but that didn't help.
The only thing that works is selecting View -> Active Editor - Soft Wrap. That formats the current editing window with auto wrap, but each time I open a new java file auto wrap is not enabled I would need to enable it again. This is so frustrating and was never an issue before Android Studio 3.5. Any help would be appreciated.
I had the same problem, and my solution should work for you. The delimiter in the soft-wrap file list is a semicolon, not a comma: change your comma to a semicolon.
By default Android Studio shows compiler errors by a red, horizontal line on the right side of the code editor. Is there any plugin to show it in the left side (where the line numbers are) or even better at the bottom in a separate view like in Visual Studio and all the other IDEs?
There is one plugin that shows you errors in the left side, Error item line marker from Chris Gamache , but I didnt find one plugin to show you errors at terminal like VS.
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.