Handmade Hero » Forums » Code » Problem with IntelliSense in VS2017
current_mood
Anders
10 posts

Professional (non-game)developer living in Stockholm, Sweden. Born '84. Gamer since five years of age, computer nerd since six.

#16411 Problem with IntelliSense in VS2017
2 months, 2 weeks ago Edited by Anders on Sept. 26, 2018, 2:29 p.m. Reason: Initial post

Hello, I've for some time now had problems with the combination of intellisense and the handmade hero code. More precisely it happens in just a few .cpp-files, one of them being handmade_world.cpp (I'm at episode 61).

The game compiles and runs just fine, it's just that my current configuration in VS doesn't seem to like these particular files, which also leads to me being unable to use refactoring features such as rename, etc.



It seems like it doesn't like the inline keyword as it is used in this file, rendering the rest of the file broken as well. But I'm not sure exactly.

Any help on how I could config IntelliSense/Visual Studio, to work with Casey's c++/c-version or whatever is the case, would be greatly appreciated.

Thanks,
Anders
mmozeiko
Mārtiņš Možeiko
1831 posts / 1 project
#16413 Problem with IntelliSense in VS2017
2 months, 2 weeks ago

VS IDE does not work well with unity builds. You'll need to help it to understand how does code looks like. Basically you'll need to put includes at top of these .cpp files so VS intellisense can find where everything is declared. Find in which header Bool32 is declared and put include to it in this file. And repeat this process for other errors.

If it breaks something then you might need to rearrange some part of code or order of includes somewhere else.
current_mood
Anders
10 posts

Professional (non-game)developer living in Stockholm, Sweden. Born '84. Gamer since five years of age, computer nerd since six.

#16436 Problem with IntelliSense in VS2017
2 months, 2 weeks ago

I understand, thank you. :)