Visual Studio Code:如何在 IntelliSense 中显示重载? [英] Visual Studio Code: How to show Overloads in IntelliSense?

查看:41
本文介绍了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.

这篇关于Visual Studio Code:如何在 IntelliSense 中显示重载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆