What if you have got a lot of code and you want to split it to different methods. You can extract an existing widget and make it a local variable and magically the widget will be replaced by the variable, wherever it is used. Let’s explore the menu items one by one : 1. Let’s see some of the examples Quick Fix OptionsĪs you can see below, when on any widget you can click Ctrl+. While coding, this is one of the important tools especially for beginners or if you get stuck somewhere and want to check for options, you can use Ctrl+Space to get a list of curated code completion options.įor faster development in flutter you can use the quick fix tool with is Ctrl+. , it helps in fixing the code with some additional requirements without messing with your code or your widget structure and giving you less headache of manually correcting everything. You can get the official dart custom shortcut list from here and flutter vs code extension documentation. Or you can take a printout of all the default VS Code keyboard shortcuts from here. Or you can also use Ctrl+Shift+P to Show Command Palette with the recently used commands or also to search commands. You can find the list of default keyboard shortcuts and also search for shortcuts by using CTRL+K+S as seen below: I won’t be able to explain all the default shortcuts in this article since the list is huge. Keyboard Shortcut Listįirstly, I will provide you the shortcut to get all the shortcuts. Now let’s jump into the shortcuts and see what all wonders we can do. If you use Android Studio and IntelliJ in Windows, I would recommend you to read this great article or if you use mac you can check out this article.įirst of all I hope you have Dart and Flutter Extensions enabled, if not you can get them from here : Dart and Flutter. I became a fan of VS Code mainly because it’s so light weight and opens much faster than other IDEs I have worked with and have a ton of features and customizations along with extensions which can do wonders (This is just my personal opinion). Time is precious and I find these shortcuts help me a lot in coding in flutter. It is a well known fact that keyboard shortcuts can help us a lot while developing, especially when you have a lot of code to go through and you have to find the opening and closing brackets or insert a new widget or remove one.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |