I do the same as Clarky's OP. I've been doing that for about 10 years... but a few years ago I learned something that I don't do enough and actually proved to be a lot more useful. I started learning every key in one position instead of one key in every position. So, I start with my first finger on the 2nd fret, play C Major without leaving that position, then move clockwise around the circle of 5ths (so, in 4ths)... C Major, F Major, Bb Major, etc... all in "2nd position". Then move it up to 4th position and do it all again. This has made me think about the difference in keys and thus a little more nimble when playing within the chord rather than just the key. Now I'm thinking "flat the B" to go from C to F instead of trying to find anchor points on the fret board to hopefully recognize the key pattern. By now I should be able to play any key anywhere on the fretboard and change in a second... but I don't practice it often enough. I think I'm going to go back to that method.