Visual Studio Code:如何在 IntelliSense 中显示重载?
我正在 Visual Studio Code 上使用新的 asp.net core 1.0 框架.
I am working with the new asp.net core 1.0 framework on Visual Studio Code.
我的问题是,如何遍历一个方法可能具有的所有重载?
My question is, how do I traverse through all the overloads a method might have?
在那个阶段你可以直接按下 (
,它会提示你重载.
When at that stage you can just press (
and it will prompt you for the overloads.
以这个例子为例:
我按下(
,我得到:
如果我碰巧改变了焦点,我可以回到 this.M1(
处的调用中,然后按 Ctrl+Shift+Space(或 ⌘+Shift+Space 在 macOS 上)再次获得过载提示:
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:
与 Visual Studio 几乎相同.
Pretty much the same as Visual Studio.
这是在 VS Code 1.7.1,C# 1.4.1 扩展中.
This is in VS Code 1.7.1, C# 1.4.1 extension.