That is worse as intelisense still doesnt work and you cant tell where it works from where it doesnt.
On 07/05/2009, at 3:48 PM, Willem Engel | Naviscale wrote: > There is an option to disable... > > Its in Tools > Options > Text Editor > C/C++ > Formatting, and its > called "colorize inactive blocks in a different color". > > hth > > -----Original Message----- > From: [email protected] > [mailto:[email protected] > ] On Behalf Of Dan Clark > Sent: 07 May 2009 00:58 > To: Discussion of Half-Life Programming > Subject: Re: [hlcoders] how to disable intellisense > fromgrayingoutproprocessor conditional blocks? > > The grayed code has to be the most annoying thing about vs. > > Sometimes I will comment out the #ifdef and it works then uncomment to > compile > > Best regards, > Dan > http://www.Lnxmad.com > > > > Sykes wrote: >> Not sure if it helps.. >> >> But for deep coding sessions, I just run the server and >> client .vcproj >> files in their own VC instances. >> this sorts out the preprocessor shinanigens once and for all :D >> s. >> >> 2009/5/6 Jonas 'Sortie' Termansen <[email protected]>: >> >>> That's what I said, it's a useful workaround, and it is possible >>> to switch >>> projects automatically when you open a new file, but I forgot >>> where the >>> setting is/what it is called. >>> >>> And if you can't get intellisense working correctly, remember that >>> real >>> programmers use notepad - or use butterflies to change the flow of >>> the eddy >>> currents in the upper atmosphere. These cause momentary pockets of >>> higher-pressure air to form, which acts as lenses that deflect >>> incoming >>> comics rays, focusing them to strike the driver platter and flip >>> the desired >>> bit - but there is a C++ command for that in the C Runtime, if you >>> are lazy. >>> ;-) >>> >>> (How else would anyone imagine that bitmasks work?) >>> >>> From: "Stephen Swires" <[email protected]> >>> >>>> Have you noticed in your solution explorer that one of the >>>> projects is >>>> listed in bold? If you right click one of them and set it to the >>>> default >>>> project it will use the intellisense/preprocessing blocks of that >>>> project. >>>> Annoying I know. >>>> >>>> On Wed, May 6, 2009 at 10:06 AM, Tom Leighton >>>> <[email protected]>wrote: >>>> >>>> >>>>> I reported this as a bug to Microsoft a while back. I forget their >>>>> response, but it was something along the lines of "desired >>>>> functionality" and "wont fix". >>>>> >>>>> Mark Chandler wrote: >>>>> >>>>>> Thats not the issue. Its visual studio being gay. >>>>>> >>>>>> Visual stuido only reads the preprocessor defines from the first >>>>>> project but uses them in every project. So code from the server >>>>>> is >>>>>> greyed out but is active. >>>>>> >>>>>> Ms knows about this but they cant fix it as it is part of the >>>>>> major >>>>>> system. Hopefully there wont be this issue in 2010 and its why we >>>>>> still use 2005 for work. >>>>>> >>>>>> Mark >>>>>> >>>>>> >>>>>> On 06/05/2009, at 1:31 PM, Jonas 'Sortie' Termansen wrote: >>>>>> >>>>>> >>>>>> >>>>>>> Select the Server or Client project from the Solution Explorer, >>>>>>> Right Click, >>>>>>> Set as Startup Project. Wait a second. Done. There is also an >>>>>>> option >>>>>>> in the >>>>>>> settings that automatically switchs projects when you click on a >>>>>>> file in >>>>>>> another project in the solution, but I forgot it's name and >>>>>>> couldn't >>>>>>> refind >>>>>>> it. >>>>>>> >>>>>>> ----- Original Message ----- >>>>>>> From: "Acolyte Of the Milkman" <[email protected]> >>>>>>> To: "Discussion of Half-Life Programming" < >>>>>>> >>>>> [email protected] >>>>> >>>>>>> Sent: Wednesday, May 06, 2009 5:06 AM >>>>>>> Subject: Re: [hlcoders] how to disable intellisense >>>>>>> fromgrayingout >>>>>>> proprocessor conditional blocks? >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>> Getting Intellisense working in the grey area is the main >>>>>>>> thing, but >>>>>>>> thanks >>>>>>>> for the advice anyways. I guess I'll just have to bite down >>>>>>>> and do >>>>>>>> what my >>>>>>>> coding forefathers had to, remember the names of >>>>>>>> classes/functions/variables/etc >>>>>>>> >>>>>>>> -------------------------------------------------- >>>>>>>> From: "Tony Sergi" <[email protected]> >>>>>>>> Sent: Tuesday, May 05, 2009 7:25 PM >>>>>>>> To: "Discussion of Half-Life Programming" >>>>>>>> <[email protected]> >>>>>>>> Subject: Re: [hlcoders] how to disable intellisense from >>>>>>>> grayingoutproprocessorconditional blocks? >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> It's in options. >>>>>>>>> 'colorize inactive code blocks in a different color' >>>>>>>>> >>>>>>>>> Options -> text editor -> c/c++ -> formatting. >>>>>>>>> >>>>>>>>> Note; that even though it won't be grey anymore, >>>>>>>>> intellisense will >>>>>>>>> still >>>>>>>>> not work in there, if you want to use it. >>>>>>>>> >>>>>>>>> >>>>>>>>> -Tony >>>>>>>>> >>>>>>>>> -----Original Message----- >>>>>>>>> From: [email protected] >>>>>>>>> [mailto:[email protected]] On Behalf >>>>>>>>> Of Jorge >>>>>>>>> Rodriguez >>>>>>>>> Sent: May-05-09 5:44 PM >>>>>>>>> To: Discussion of Half-Life Programming >>>>>>>>> Subject: Re: [hlcoders] how to disable intellisense from >>>>>>>>> graying out >>>>>>>>> proprocessor conditional blocks? >>>>>>>>> >>>>>>>>> This has bothered me for a while and I would like to know the >>>>>>>>> solution >>>>>>>>> too, >>>>>>>>> but my layman's solution is to copy stuff outside of the >>>>>>>>> CLIENT_DLL block >>>>>>>>> and then right click it, it's usually recognized by >>>>>>>>> intellisense >>>>>>>>> immediately. >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Jorge "Vino" Rodriguez >>>>>>>>> _______________________________________________ >>>>>>>>> To unsubscribe, edit your list preferences, or view the list >>>>>>>>> archives, >>>>>>>>> please visit: >>>>>>>>> http://list.valvesoftware.com/mailman/listinfo/hlcoders >>>>>>>>> >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> To unsubscribe, edit your list preferences, or view the list >>>>>>>>> archives, >>>>>>>>> please visit: >>>>>>>>> http://list.valvesoftware.com/mailman/listinfo/hlcoders >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> To unsubscribe, edit your list preferences, or view the list >>>>>>>> archives, >>>>>>>> please visit: >>>>>>>> http://list.valvesoftware.com/mailman/listinfo/hlcoders >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> _______________________________________________ >>>>>>> To unsubscribe, edit your list preferences, or view the list >>>>>>> archives, please visit: >>>>>>> http://list.valvesoftware.com/mailman/listinfo/hlcoders >>>>>>> >>>>>>> >>>>>>> >>>>>> _______________________________________________ >>>>>> To unsubscribe, edit your list preferences, or view the list >>>>>> archives, >>>>>> >>>>> please visit: >>>>> >>>>>> http://list.valvesoftware.com/mailman/listinfo/hlcoders >>>>>> >>>>>> >>>>>> >>>>>> >>>>> _______________________________________________ >>>>> To unsubscribe, edit your list preferences, or view the list >>>>> archives, >>>>> please visit: >>>>> http://list.valvesoftware.com/mailman/listinfo/hlcoders >>>>> >>>>> >>>>> >>>> -- >>>> - Stephen Swires >>>> _______________________________________________ >>>> To unsubscribe, edit your list preferences, or view the list >>>> archives, >>>> please visit: >>>> http://list.valvesoftware.com/mailman/listinfo/hlcoders >>>> >>>> >>> _______________________________________________ >>> To unsubscribe, edit your list preferences, or view the list >>> archives, please visit: >>> http://list.valvesoftware.com/mailman/listinfo/hlcoders >>> >>> >>> >> >> _______________________________________________ >> To unsubscribe, edit your list preferences, or view the list >> archives, please visit: >> http://list.valvesoftware.com/mailman/listinfo/hlcoders >> >> > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list > archives, please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list > archives, please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

