[帮助] Visual Studio是否有办法自动更正已弃用的C#Unity代码? [英] [Help] Is there a way for Visual Studio to auto correct deprecated C# Unity Code?

查看:132
本文介绍了[帮助] Visual Studio是否有办法自动更正已弃用的C#Unity代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我不知道在哪里问这个问题,如果这是在错误的地方,请道歉。



我正在研究Unity我知道它有api更新程序,但对我来说似乎是灰色的,即使我的脚本中已弃用的代码也是如此。我知道当你在Unity的更高版本中打开一个旧项目时,它会对你进行更改,显然visual studio
知道需要进行的更改。那么Visual Studio是否有办法为您做出这些修正?我目前的课程是统一4但我真的想学习最新代码,我经常发现我对旧代码感到困惑。



https:// postimg .cc / image / u7kc2bj19 /


红利问题;此外,我注意到当我输入代码有时自动纠正想要跳入并在我打字时将其更改为其他东西,我发现制表符和空格键似乎都接受这些更改,有没有办法避免这种情况发生?



谢谢。

Hi guys, I wasn't sure where to ask this question, so apologies if this is in the wrong place.

I am studying Unity and i know it has the api updater but that seems to be greyed out for me even with the deprecated code is in my scripts. I know when you open an old project in a later version of Unity it does the changes for you and obviously visual studio knows the changes that need to be made. So is there a way for visual studio to make these corrections for you? My current course is in unity 4 but i really want to learn up to date code and i find often i run into confusion regarding old code.

https://postimg.cc/image/u7kc2bj19/

Bonus question; Also i notice when i type code sometimes the auto correct wants to jump in and change it to something else while i am typing and i find both the tab and space keys seem to accept these changes, is there any way to avoid this happening?

Thank you.

推荐答案

嗨  Tomu_Cat,

Hi Tomu_Cat,

欢迎来到MSDN论坛。

Welcome to MSDN forum.

>>那么Visual Studio是否有办法为您做出这些更正?

Visual Studio将检测项目是在早期的visual studio中创建的,但我们需要自己对代码进行更改。

Visual studio will detect the project was created in earlier visual studio, but we need to make changes to code by ourselves.

当你打开一些时在早期版本的Visual Studio中创建的项目类型,如通用Windows应用程序,Visual Studio将检测到项目或文件是在早期版本的Visual Studio中创建的,Visual
Studio转换向导打开然后我们需要完成Visual Studio转换向导。如果没有Visual Studio转换向导,并且您在打开旧项目时遇到问题,则需要

排除不成功的Visual Studio项目升级故障

When you open some type of projects created in earlier version of visual studio like universal windows application, Visual Studio will detect that the project or file was created in an earlier version of Visual Studio, the Visual Studio Conversion Wizard opens and then we need to complete the Visual Studio Conversion Wizard. If there is no Visual Studio Conversion Wizard and you have issue with opening old projects, you need to Troubleshoot Unsuccessful Visual Studio Project Upgrades.

由于您使用Unity,我建议您可以访问:
https://unity3d.com/community 获取更多关于团结的支持。

Since you are using Unity, I recommend you could go to here: https://unity3d.com/community to get more support about unity.

>>另外我注意到当我输入代码时,有时自动更正要跳入并更改当我打字时我发现其他东西,我发现标签和空格键似乎都接受了这些变化,有没有办法避免
发生这种情况?

请点击工具 - >选项 - >文字编辑器 - > c# - > intellisense取消选择它,如下面的截图。

Please click on Tools->Options->Text Editor->c#->intellisense to unselect it like the following screenshots.

祝你好运,

Joyce


这篇关于[帮助] Visual Studio是否有办法自动更正已弃用的C#Unity代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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