Not easy to memorise in usable fashion over the entire fretboard. I memorise the major scale taking the root as the reference point and then two patterns - one either side. Take the C note on the 5th string.
To the left we have the "open position pattern" which runs C to C over 4 strings...