如何在visual studio中添加名称空间c#(how to add namespaces in in visual studio c#)

编程入门 行业动态 更新时间:2024-10-18 06:10:39
如何在visual studio中添加名称空间c#(how to add namespaces in in visual studio c#)

我如何将名称空间添加到visual studio中,我的意思是java字是常见的(如果你提供了对正确库的引用),你可以将导入添加到java“namespace”。 (见图)。

C#中有一些类似的功能吗? 我的意思是,我发现很难捕获正确的命名空间,因为作为一个java程序员,IDE帮助我...

正如您在给定的示例中所看到的,Netbeans甚至让我选择使用哪个“命名空间”。

How do i add namespaces to the visual studio, I mean on the java word is common that the (if you have provided the reference to the right library) you can add the import to the java "namespace". (See picture).

Is there some similar feature in C# ? I mean, I find it very hard to fish the right namespaces, because as a java programer the IDE assists me...

As you can see in the given example Netbeans even let me choose which "namespace" is to be used.

最满意答案

在此处输入图像描述

用图片中的鼠标来做。 或者按CTRL + . 或SHIFT + ALT + F10 (他们也这样做) 或者使用reSharper并按ALT + ENTER

enter image description here

Do it with your mouse like in the picture. Or press CTRL + . or SHIFT + ALT + F10 (they do the same) Or use reSharper and just press ALT + ENTER

更多推荐

本文发布于:2023-04-28 03:28:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1329722.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:名称   如何在   空间   visual   namespaces

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!