Skip to content

Instantly share code, notes, and snippets.

@mojobojo
Created April 26, 2018 21:59
Show Gist options
  • Save mojobojo/ee343fc80aaa2e10acf0f27501e841ef to your computer and use it in GitHub Desktop.
Save mojobojo/ee343fc80aaa2e10acf0f27501e841ef to your computer and use it in GitHub Desktop.
intellisense problem
#include <stdio.h>
enum SomeEnum {
SOME_ENUM_THING,
SOME_ENUM_THING_AS_WELL
};
struct Some {
int nothing_to_see_here;
};
int main(int argc, char **argv) {
// Just type 'SOM' and intellisense will show 'SOME_ENUM_THING' and 'SOME_ENUM_THING_AS_WELL'
// but the second you add an 'E' and make it 'SOME' it will switch to suggesting Some.
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment