When at that stage you can just press (
and it will prompt you for the overloads.
Take this example:
I press (
and I get:
If I happen to change focus, I can go back into the call at this.M1(
and press Ctrl + Shift + Space (or ⌘ + Shift + Space on macOS) to get the overload prompt again:
Pretty much the same as Visual Studio.
This is in VS Code 1.7.1, C# 1.4.1 extension.
I can't comment on the accepted answer but in case anyone has the problem Dawson B mentioned, where you can't navigate the little window of overloads with the vim extension enabled, I found a solution. It was difficult to figure out what that window is called as it's not easy to google, but it is apparently a ParameterHint
.
Open the Keyboard Shortcuts with Ctrl+K Ctrl+S
, search for "hint", click the pencil to the left of showNextParameterHint
, change to Alt+N
, and showPrevParameterHint
to Alt+P
, to not interfere with the Ctrl+N/P
binding to Intellisense suggestion navigation. Of course if these conflict with some other extension/custom binding you have, pick whatever works best.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.