Visual Studio Code and Unity: VSCode say that namespace already exists - unity3d

Here is the thing: I create a new C# Script at the Unity editor and open it on the visual studio. I write my code normally with no errors, it works and I close VSCode.
When I open VSCode again it show some errors saying that the namespace already exists, even thought Unity does not show the same error, and the code keep working properly.
Does anyone have any Idea of what is causing this?

Related

OmniSharp not supporting unity anymore

So I recently started my final year project in Unity, for the code I use visual studio code, but the problem is that i installed the c# extension from omnisharp and it says that it doesn t support unity anymore or something like that. It doesn t show me any errors, doesn’t complete my code, nothing. What should I do?
In VS CODE
untick this option:

Unity scripts using Rider, code highlighting doesn't work

Recently I started using Rider for Scripting in Unity. It's fine but when I switch to some script (very small weight), it doesn't show any code highlighting (except blue):
The same code in other script which can work:
For work reasons it is not possible for me to delete the current script. I've tried to reinstall and checked my Settings, but still couldn't fix it.
EDIT: Thanks for the note, here is my other information:
Unity Setting:
Preferences - External Tools - External Script Editor - Rider 213.6461.51
Open Script:
Double-click on the script in Unity to open it
Same script, each keyword is highlighted in VS Studio 2019
My Unity version is 2018.4.1f1, Rider version is 2021.3
Does anyone know how to solve this problem?
I have solved the problem.It appears that Rider updates the naming conventions when opening certain scripts.
The immediate solution is:Suppose one of your script files has code highlighting disabled, Open the script in Rider, and you will see the word OFF in the upper right corner.Click it, you will see:
enter image description here
All you have to do is change "None" to "All Problems".

Unreal Engine 4 problems with intelliSence

I am new to unreal Engine 4, and I am trying to create c++ class. It creates files sucsessfully, but InteliSence does not work, even if I type in, there is not int suggestion. All i found was this question, but I do not have similar patch in my Engine folder.
I use the lastest eigne version.
Assuming you are using Visual Studio and not Visual Studio Code:
When I create a new class from within the Unreal Editor, IntelliSense won't properly read the code and will generate errors such as not finding include files.
Either reopening Visual Studio, or a refresh from within the Unreal Editor ( Files > Refresh Visual Studio Project ) usually does the trick.
If that will not help, there's an error within Unreal 4.25 that will make the boilerplate code generate the wrong directory at #include "folder/myclass.h". IntelliSense might not read any further than that.
Typing the correct directory and refreshing with the methods mentioned above fixes that for me.

Input does not work in Visual Studio Code

So I just started learning programming and I think something is messed up with my code runner in Visual Studio Code. When I try to use input in Python I can not write anything in the terminal. This problem came out recently. It writes that when I try to input anything that it "cannot edit in read-only editor". I also checked in here what could be the solution, but it did not help. Input still does not work. I am on Linux, and I also tried to uninstall the program and code runner as well, none of them worked so far.
Ps: I tried the Code-runner: Run in Terminal box check method, which did not work at all.

Is it possible to add auto-completion into external code editors for Unity

I just started using Unity with Visual Studio Code and got it up and running to use it instead of the default code editor but VSC doesnt display auto-completion and I am wondering if it is even possible to add this feature into Visual Studio Code and if yes, how to do so.