Unity 中的 Resharper 和 linting C#
Resharper and linting C# in Unity
我目前正在尝试找出我的 Resharper 出了什么问题。
我希望 Reshaper 对我的 C# 代码进行 lint。我在 Visual Studio 2019 年编辑代码,但它源于 Unity,即它主要是 MonoBehaviours 等。
这会影响 linting 吗?我根本没有看到任何 linting。我可以直接输入 int = b;
,甚至不会收到任何草率的评论...
我没有暂停 Resharper,我检查了代码突出显示设置,一切似乎都已开启。
知道我可能做错了什么吗?
非常感谢!
我猜你没有按照此处所述进行设置:https://forum.unity.com/threads/intellisense-not-working-with-visual-studio-fix.836599/
Step 1:
Close Visual Studio
Step 2:
In Unity, go to Edit < Preferences < External Tools (left part of the Window)
Step 3:
In External Tools go to the part that says External Script Editor (this should be on which ever Visual Studio editor you are using (for me it defaulted to "Open by File Extension"
Step 4:
Make sure Generate all csproj files is checked, and Editor Attaching is checked
Step 5:
Open the C# script you were trying to open earlier
我目前正在尝试找出我的 Resharper 出了什么问题。
我希望 Reshaper 对我的 C# 代码进行 lint。我在 Visual Studio 2019 年编辑代码,但它源于 Unity,即它主要是 MonoBehaviours 等。
这会影响 linting 吗?我根本没有看到任何 linting。我可以直接输入 int = b;
,甚至不会收到任何草率的评论...
我没有暂停 Resharper,我检查了代码突出显示设置,一切似乎都已开启。 知道我可能做错了什么吗?
非常感谢!
我猜你没有按照此处所述进行设置:https://forum.unity.com/threads/intellisense-not-working-with-visual-studio-fix.836599/
Step 1: Close Visual Studio
Step 2: In Unity, go to Edit < Preferences < External Tools (left part of the Window)
Step 3: In External Tools go to the part that says External Script Editor (this should be on which ever Visual Studio editor you are using (for me it defaulted to "Open by File Extension"
Step 4: Make sure Generate all csproj files is checked, and Editor Attaching is checked
Step 5: Open the C# script you were trying to open earlier