Perhaps I am doing something wrong but it seems that auto-complete
(and parsing too, sometimes i get false negatives before a successful
build) does not work properly if you use the indentation style to
organize your code.
It works perfectly if you use braces but I much prefer using
whitespace to braces. Any suggestions?
Right so it does work with indentation after all. The autocomplete
problem seems to be caused by some incompatibilty with indentation and
the parser. It seems to be expecting semicolons after every statement
which is not required in indent based code. Thus the code following
the statement with no semicolon will be crippled by the error and not
get auto-complete feature.
> Right so it does work with indentation after all. The autocomplete > problem seems to be caused by some incompatibilty with indentation and > the parser. It seems to be expecting semicolons after every statement > which is not required in indent based code. Thus the code following > the statement with no semicolon will be crippled by the error and not > get auto-complete feature.
> Perhaps I am doing something wrong but it seems that auto-complete > (and parsing too, sometimes i get false negatives before a successful > build) does not work properly if you use the indentation style to > organize your code.
Its not too big a deal. putting a semicolon ; on the line of code
before allows me to have auto complete on inferred types and all that
good stuff. Afterwards I just take it off. heh.
Something else interesting though minor is that if you make a macro
project and then have another project add it as a reference in your
solution then that project loses all of the VS integration abilities
including; auto complete, error detection, syntax highlighting, scope
collapsing,.. .
Workarounds are:
- Remove referenced macro project every time before opening files in
IDE for Dependant project <- really annoying
- Or what i do, which is have the project be in the same solution but
add a reference to the binary on disk instead of to the project.
> > Perhaps I am doing something wrong but it seems that auto-complete
> > (and parsing too, sometimes i get false negatives before a successful
> > build) does not work properly if you use the indentation style to
> > organize your code.
> Something else interesting though minor is that if you make a macro > project and then have another project add it as a reference in your > solution then that project loses all of the VS integration abilities > including; auto complete, error detection, syntax highlighting, scope > collapsing,.. .
You should only recompile solution.
> - Or what i do, which is have the project be in the same solution but > add a reference to the binary on disk instead of to the project.