如何在对象实例之前停止visual studio的自动选项以写入命名空间? [英] How to stop visual studio's automatic option for writting the namespace before the instance of the object ?

查看:81
本文介绍了如何在对象实例之前停止visual studio的自动选项以写入命名空间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。你知道我怎么能阻止这个:

[ ^ ]

即时写作学生s =新学生();但它自动纠正它。我正在使用的Visual Studio版本是2015年!



我尝试了什么:



搜索的是Visual Studio的文本编辑选项,但没有发现任何相关内容。

Hi. Do you have an idea how I can stop this:
[^]
im writting Student s = new Student(); but its auto-correcting it. The version of Visual Studio which im using is 2015!

What I have tried:

Searched is Visual Studio's Text Editing options but found nothing about it.

推荐答案

使用上阅读c>:使用命名空间(C#编程指南)| Microsoft Docs [ ^ ]


将以下代码置于代码之上:

By placing the following on top of your code:
using CSharp_Practicing;

或在代码中包含Student类。

Or include the class "Student" in your code.


这篇关于如何在对象实例之前停止visual studio的自动选项以写入命名空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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