Unreal Engine 4 problems with intelliSence - unreal-engine4

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.

Related

Visual Studio Code forgetting my extension

I'm developing an extension for Visual Studio Code for the proprietary language that the product I code for uses because I hate the antiquated IDE ships with it. Everything is going fine except for one issue. When I close and open Visual Studio Code, Visual Studio Code seems to "forget" my extension. Syntax highlighting, code completion, commands that I've implemented all stop working. I have to disable and then enable to extension for it to start working again. I am OK with this for personal use. However, I want to push this out to other users both in and outside of the company. If any code would be helpful, let me know, and I will happily provide it.
I resolved this issue. It was because in my settings.json for VS Code I had an entry for the file extension pointing to an extension that I had removed. Removing that line from my settings.json resolved the issue of things not working when I opened VS Code.
Thanks to everybody for their comments.

VS code doesn't detect UnityEngine.UI library - Unity

The issue is VS code doesn't see UnityEngine.UI library.
I had this issue before and I solved like it this:
I changed the code editor in preferences to Visual Studio, regenerated files and launched c# project. On the start, vs created needed .csproj files and then I closed vs and changed it back to vs code and it workeed.
However, now I am working on another project and I encountered same issue, I tried the method I described above but it didn't work.
Any ideas?
So, after days of tinkering and trying different solutions I found on the internet I finally found out how to solve it (all by myself).
Switch to VS and make sure it detects the UnityEngine.UI library. Then don't close VS, switch to VS Code, don't hit "regenerate files", launch c# project, enjoy!
These steps covered several possible issues:
https://stackoverflow.com/a/70977258/6046022
(just an overview, follow the link for the complete steps)
downgrade VSC package
re-install Unity UI
regenerate files

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

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?

Visual Studio Code language extension not highlighting syntax

Followed this piece of instruction to create a language extension for .abcd files.
During yeoman generator I used this as a reference.
Everything went well and the new extension was created. Then I open the generated folder as a Visual Studio project and hit F5 to run VS Code with my newly created extension, but nothing gets highlighted as if there is no support for that language.
I have not done any changes to the generated files, but since I am using Ada.plist as a starting point, shouldn't it at least highlight .abcd file as Ada file?
You need package.json file to register the language. It's described in the same document.
You may be interested in this repo also:
https://github.com/Entomy/Ada-vscode

Quickly creating certain files in VS Code

Is there an easy and quick way to create certain files in VS Code as in full blown Visual Studio? For example, I can create a config file or an app settings json file in Visual Studio that will not only create the file but insert the basic structure into the file.
Is this possible in VS Code?
This can't be done in bare Visual Studio Code. But there's a couple of extensions around which do what you are looking for.
Here's a non-exhaustive list of extensions:
File Templates for VSCode
File Templates
...