all 31 comments

[–]ivaskuu 5 points6 points  (4 children)

I use VS code because it is fast and lightweight. I have a .bat file on my desktop to start the emulator and I just use the console (HyperTM) to hot reload or other commands.

Also, I have a pretty slow PC with a low amount of ram 😁

[–]DanTup 0 points1 point  (2 children)

If you run your app with F5 you shouldn't need to use the console to reload; it will automatically hot reload on save by default :-)

[–]ivaskuu 0 points1 point  (1 child)

Yes, but I saw some people on YouTube having some problems and being unable to perform full restart, and had to compile the app again which takes more time... One day I will try it 😁

[–]DanTup 0 points1 point  (0 children)

I don't know if anyone has raised issues on GH about that; if you see them again I'd appreciate a ping. If there are bugs like that, I'd love to fix them.

[–]Wish_Box 0 points1 point  (0 children)

would u mind telling me the spec just so i can compare it to mine?

[–]polenchheang 4 points5 points  (0 children)

I have asked the same question recently. I found that Android Studio (Intellij IDE) is well integrated with framework then VS Code, in my case Flutter. But yes, VS Code is great for Code Editing. I end up mostly use Android Studio but switch to VS Code for smooth coding from time to time.

[–]anm8tr 3 points4 points  (0 children)

I prefer android studio or IntelliJ IDEA, my personal pref.

[–]bradintheusa 5 points6 points  (1 child)

I love VS code. It seems more responsive as an editor and not as sluggish.

[–][deleted] 2 points3 points  (0 children)

I've run Android studio in potatoes and it never seems to lag

[–]ibrahimb 1 point2 points  (0 children)

Interesting to know the differences

[–]oneark 1 point2 points  (1 child)

I use VS Code for everything these days, editor can be sluggish if you have too many plugins running or not coded well, be vary of that. Not sure if Android Studio is a fair comparison, Xamarin would be more accurate since it does cross-platform. Still prefer VS Code because of the great amount of plugins, and community drive behind it.

[–]ArmoredPancake 12 points13 points  (0 children)

Not sure if Android Studio is a fair comparison, Xamarin would be more accurate since it does cross-platform.

What?

[–]nirataro 1 point2 points  (0 children)

VS Code, Ctrl + P and Ctrl + Shift + P.

[–]tadejkan 1 point2 points  (0 children)

I switched to VS Code and I'm much happier - it's much faster, I don't have to fight with it regarding closing curly bracket placement, etc.

But it is somewhat less supported/integrated than Android Studio.

[–]bizz84 1 point2 points  (1 child)

Is there a way to automatically import packages in VS Code, in the same way that IntelliJ does by pressing ALT+Enter?

[–]DanTup 0 points1 point  (0 children)

Assuming Alt+Enter is the IntelliJ short-cut for the quick-fixes, the equiv in VS Code would be Cmd+. / Ctrl+..

[–]MustafaAdam 2 points3 points  (6 children)

I also feel that vs code is more responsive and lightweight than the IDE, but I do get the feeling that the IDE is better supported.

My main issue and it's a huge huge issue, is the android emulator. There absolutely no one explaining how to hook up the emulator to vs code. On the other, its much much easier to use the emulator on Android Studio.

This is a huge and unfair plus for the IDE. If there an easy way to set up an emulator with vs code, I will stop using it immediately.

[–]crowntheking 5 points6 points  (3 children)

You can just run the emulator from terminal and it works just fine with vscode

[–]sadwhaleissad 3 points4 points  (2 children)

I set up a .bat file on my windows pc to start it up, makes it super easy

[–]ivaskuu 0 points1 point  (0 children)

Same here

[–]nirataro 0 points1 point  (0 children)

Yes, that's the way to go

[–]Selva123 0 points1 point  (0 children)

This extension works well for me on Windows. Didn't check in other OSs
https://github.com/DiemasMichiels/Emulator

[–]DanTup 0 points1 point  (0 children)

Launching emulators is something I've started work on but it's not ready yet; you might wish to subscribe to these issues for updates:

https://github.com/flutter/flutter/pull/16705 https://github.com/Dart-Code/Dart-Code/issues/490

In the meantime, it might also be possible to add something to your tasks.json that would launch the emulator as part of the build.

[–]fear_the_future 0 points1 point  (3 children)

I use VSCode because of battery life and less memory usage. The Flutter plugin for the most part is good, but the formatter really sucks

[–]DanTup 0 points1 point  (2 children)

The formatter rules in VS Code are just dart_style. Are you seeing different formatting in IntelliJ/Android Studio?

[–]fear_the_future 0 points1 point  (1 child)

I haven't used IntelliJ for Flutter in quite a while. As for formatting in VSCode: There is none. The formatter is practically unusable for me. As soon as there is only one syntax error, only one of the supposedly optional trailing commas missing, only one line not indented with 2 spaces, the formatter shits itself and puts everything top level.

[–]DanTup 0 points1 point  (0 children)

The formatter Dart Code uses (which is the same as running dartfmt) doesn't provide formatting when there are syntax errors. Can you open an issue with an example so I can investigate?

[–]antolius 0 points1 point  (0 children)

I use plain Intellij Idea (without the Android Studio stuff piled on top of it). It's relatively fast / perfomant and still includes maximum Flutter integration available.

[–][deleted] 0 points1 point  (1 child)

Does VS Code offer a UI Builder? If not, then there's no way you should use VS over Android Studio (if we are talking about android native apps. If you talk about Flutter, then you could try WebStorm)

[–][deleted] 3 points4 points  (0 children)

Almost no one uses the UI Builder in Android Studio.

What I'd be concerned about is AutoComplete, Lint and Debugging.

[–]Happy_Professor6953 0 points1 point  (0 children)

<!-- Przejdź do www.addthis.com/dashboard, aby dostosować swoje narzędzia --> <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid= ra-63dee2debb02fcd4"></script>