I am switching from android studio to VScode for flutter development and, obviously, there are some shortcuts that on android studio different from those on VScode. One of those shortcuts that I could not find is the listing of all arguments of a widget. I am looking for a shortcut that lists all the args without entering any letter.
I used cmd + space and nothing happend. I also used shift + cmd + space and gave me something I am not looking for. So can anyone help me with that?
CTRL + space works.
To check your keybinding, go to Preferences > Keyboard Shortcuts, and search for Trigger Suggest.
But also make sure you have the Flutter & Dart extension to get code hint/completion:
Dart: https://marketplace.visualstudio.com/items?itemName=Dart-Code.dart-code.
Flutter: https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
Just CTRL + space works for me. I installed Intellij keymap as an extension on my VSCode too Here is an image of my vscode.
Sugestions without type anything
For a given widget VS Code auto-completion provide both method and class, respectively purple and yellow symbols.
An option is to select the class of the widget you want to use instead of the method in the auto-completion list. Then, as soon as you will add the opening parenthesis, all arguments will be listed and available for selection.
Related
I would like to change the keyboard shortcut for quick fix in Visual Studio 2013, so that it matches the ReSharper equivalent (which I only use on my office machine). How can I do it?
One way to do it is to enter on the menu 'Tools', 'Customize' and click on the 'Keyboard...' button near the 'Close' button.
Inside this option you can search for the commands by name (I couldn't find the Quick Fix here), maybe you want the Edit.FormatDocument one, that makes the indentation for the documents automatically.
If you can't find this option, tell me your quick fix actual keyboard shortcut, so I'll be able to check which function it calls.
I did some research on the R# QuickFix option and maybe what you want is this is the option you want: View.ShowSmartTag.
Look at this doc: Identify and customize keyboard shortcuts in Visual Studio
I used to be able to be able to Ctrl+F to search whatever was logged in VS Code. Now, for some unknown reason, the search bar doesn't show up when I type in Ctrl+F.
I am on version 1.57, which is the latest at this time.
This question if for the Debug Console which isn't the tab I am looking at.
Click anywhere inside the output panel, and then press Ctrl + F
I realized that the Vim extension is what is causing this. Ctrl+F is for scrolling and although previously Vim keyboard shortcuts didn't work in the output panel, they seem to have been extended to it recently see this issue I raised.
vs code suddenly not showing the refactoring option on any code on dart.. If I press ctrl+shift+R on any widget or class it says no refactoring enter image description hereavailable..
Turning dart lps analyzer off solved the problem for me
Place your cursor in the widget you want to edit and use CTRL + . shortcut to see the options. Use CMD + . for MacOS. To do it manually in VS Code.
And For Android Studio its option + return in Mac and Alt + Enter in Windows.
See this For A Reference
By autocomplete I mean having something like Intellisense in VS Code by which I can see available functions or members in a particular library?
Yup. Press control space (or command space, on a Mac) and autocomplete suggestions will appear.
If you navigate to Settings... and then uncheck "Automatically trigger code completions":
...you'll then be able to use tab-to-complete like in a conventional Jupyter notebook. From the Keyboard Shortcuts page of the Colaboratory app:
I'm on a macbook pro, Option+ Esc performs autocomplete for me.
Ctrl+Space (works on Mac as well), but I have to run the cell once:
If you have only one language on your macbook then you can press Ctrl + space for Mac, as well as for Windows.
Works like magic, see the image below:
If you have more than one language you are switching between languages using Ctrl + space, you need to use option+esc
On Windows it work the same way as with Ctrl+Space if you press Tab. Not sure about Mac, however.
you can check for what keyboard shortcut works for you in the settings in the keyboard shortcuts inside of the tools tab.
I am using VS Code with the excellent vscodevim extension. When I navigate to a code that has a Quick Action available I can ctrl + . to activate the drop down context menu.
Is there a way to select toggle through the list of available items using the keyboard - other then the arrows keys. As a point of information, within Visual Studio it is possible using tab, this does not work in VS Code.
Why? 'cause I love my MS ARC keyboard but I hate the rocker arrow keys.
This is a known issue for linux users using vscode with advanced shortcuts like vim extension in your case, for some reason quick fix contextual menu is unattached from vscode shortcuts which makes shortcuts not work. A really easy workaround to use with a graphical interface is HotKey.
HotKey > https://github.com/autokey/autokey for Linux and create your own shortcut.