A quick question for Visual Studio users (with an ancillary part for anyone who writes C/C++/possibly Java/possibly others). Throughout the following, I mean {} or () by "brackets" :)
Is there an option anywhere in Visual Studio which I can set which means that when I highlight/hover over a bracket, it will in some way highlight or indicate its matching friend ? Yes, I know when you first close your brackets they're in bold text, but that goes away as soon as you start typing something else.
I just asked a VS user here, and he (a) had no idea and (b) seemed baffled I'd want that. Now, up until this recent enforced flirtation with VS I've written C/C++ exclusively in Emacs. Which allows you to set all kinds of different manners of highlighting for brackets. I find it phenomenally useful and am currently boggled that any serious text editor intended for programming doesn't offer this.
So... is this a reasonable thing to want to, or a strange quirk of mine bred by too much use of Emacs ? And, more importantly, can I make VS do it ?
Irrelevantly, just because I want to know:
[Poll #1028846]
Is there an option anywhere in Visual Studio which I can set which means that when I highlight/hover over a bracket, it will in some way highlight or indicate its matching friend ? Yes, I know when you first close your brackets they're in bold text, but that goes away as soon as you start typing something else.
I just asked a VS user here, and he (a) had no idea and (b) seemed baffled I'd want that. Now, up until this recent enforced flirtation with VS I've written C/C++ exclusively in Emacs. Which allows you to set all kinds of different manners of highlighting for brackets. I find it phenomenally useful and am currently boggled that any serious text editor intended for programming doesn't offer this.
So... is this a reasonable thing to want to, or a strange quirk of mine bred by too much use of Emacs ? And, more importantly, can I make VS do it ?
Irrelevantly, just because I want to know:
[Poll #1028846]
no subject
Date: 2007-07-27 05:08 pm (UTC)Arrgh.
However, if you want a chunk of BSD-licensed code that calculates 4 or 8 byte IEEE floating point constants from a string representation, I know where to get one...
no subject
Date: 2007-07-27 05:14 pm (UTC)http://blog.int6.net/wp-content/uploads/2006/10/FastInverseSqrt.pdf
Which (until I googled for the magic number and found the above) was wildly impenetrable.
no subject
Date: 2007-07-27 05:26 pm (UTC)Oddly enough, the PowerPC (yes, I've been spending far too much time immersed in that sodding "what do you mean, the R in RISC stands for 'reduced'?" abomination of a "of *course* it makes sense to number bits with 0 as the MSB and 31... er, 63... er, n as the LSB" processor) has an instruction, frsqrte, that calculates exactly this:
http://www.nersc.gov/vendor_docs/ibm/asm/frsqrte.htm
It could well use that algorithm...
no subject
Date: 2007-07-30 09:55 pm (UTC)Good old Newton Raphson root finder with a sneeky initial approximation using the fact that IEEE FP have exponent and mantissa, halving the exponent is always a good way of starting to head towards the sqrare root.
no subject
Date: 2007-07-27 05:32 pm (UTC)If you can find out an option in Visual Studio to use Vi emulation, then it's %.
He said helpfully.
no subject
Date: 2007-07-27 06:21 pm (UTC)no subject
Date: 2007-07-27 11:27 pm (UTC)no subject
Date: 2007-07-27 07:11 pm (UTC)no subject
Date: 2007-07-27 11:28 pm (UTC)no subject
Date: 2007-07-27 07:52 pm (UTC)Which version of Visual Studio? And do you have Visual Assist?
IIRC (and I could check but can't be arsed) 2005 does this, but no earlier version does unless you install Visual Assist. ctrl-] will jump between them if you need it to.
no subject
Date: 2007-07-27 11:29 pm (UTC)no subject
Date: 2007-07-28 01:11 am (UTC)no subject
Date: 2007-07-27 08:52 pm (UTC)'The bit on the bottom'
'Thingy point whatsit whatsit'
no subject
Date: 2007-07-27 11:31 pm (UTC)no subject
Date: 2007-07-28 10:56 am (UTC)no subject
Date: 2007-07-27 09:07 pm (UTC)no subject
Date: 2007-07-27 09:10 pm (UTC)no subject
Date: 2007-07-27 11:27 pm (UTC)no subject
Date: 2007-07-27 11:32 pm (UTC)no subject
Date: 2007-07-27 11:42 pm (UTC)no subject
Date: 2007-07-27 11:59 pm (UTC)no subject
Date: 2007-07-29 03:53 pm (UTC)no subject
Date: 2007-07-28 01:38 am (UTC)no subject
Date: 2007-07-28 09:12 am (UTC)no subject
Date: 2007-07-28 09:36 am (UTC)no subject
Date: 2007-07-28 08:25 pm (UTC)