Any way to pass UE4 comments to Hover/Completion with UE4's reflection system? #7248
-
The UFUNCTION does nothing in code but it does get read by UE4 to build Blueprint functionality. These Macros block the documentation from appearing on hover and completion though. I tried some #ifdef INTELLISENSE tricks with no luck. MS got rid of the macro trick that could create a comment. Any cool cpp.hint tricks that could do this? Replacing the macro with a blank line won't work. (edit: The macros actually are a blank line) Maybe a cpptools fix? A regex for lines that will get ignored by hover/completion? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Yeah, you can create a cpp.hint with
Let us know if that doesn't work. The main thing is that the cpp.hint definition can't be non-empty. What does "MS got rid of the macro trick that could create a comment." mean? |
Beta Was this translation helpful? Give feedback.
-
(edited) It works! Both cpp.hint files in root workspace directory. cpp.hint:
Currently only doing the two but could be tested on other UMacros. I meant using ## to replace a macro with a comment. I found one that worked though! Didn't work in the past with ones I tried and they said MS removed support for it. Weird that it's this simple:
|
Beta Was this translation helpful? Give feedback.
-
Thanks again for the help! I had tried fixing that multiple times. Do you think other compilers will be compatible with the fix? Especially clang? |
Beta Was this translation helpful? Give feedback.
-
I forgot to mention anomalies during testing. This could be my fault but something to check.
This could be an anomaly with Process Monitor or just how VSCode works. Of course there's a good chance of user error. |
Beta Was this translation helpful? Give feedback.
Yeah, you can create a cpp.hint with
Let us know if that doesn't work. The main thing is that the cpp.hint definition can't be non-empty.
What does "MS got rid of the macro trick that could create a comment." mean?